[issue19883] Integer overflow in zipimport.c

2013-12-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: zipimport.c makes no attempt to support zip files larger than 2GiB or zip64 files. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue19

[issue19506] subprocess.communicate() should use a memoryview

2013-12-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue19506] subprocess.communicate() should use a memoryview

2013-12-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw, this patch made sense. using test_sub.py on my dual-core amd64 box with an opt build is saw the times drop from ~0.90-0.97 to ~0.75-0.8. more speedup than i was really anticipating for this use case. it probably depends upon what the value of

[issue19837] Wire protocol encoding for the JSON module

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: upstream simplejson (of which json is an earlier snapshot of) has an encoding parameter on its dump and dumps method. Lets NOT break compatibility with that API. Our users use these modules interchangeably today, upgrading from stdlib json to simplejson

[issue19837] Wire protocol encoding for the JSON module

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: So why not put a dump_bytes into upstream simplejson first, then pull in a modern simplejson? There might be some default flag values pertaining to new features that need changing for stdlib backwards compatible behavior but otherwise I expect it's a

[issue19929] subprocess: increase read buffer size

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I saw a small regression over 4k when using a 64k buffer on one of my machines (dual core amd64 linux). With 32k everything (amd64 linux, armv7l 32-bit linux, 64-bit os x 10.6) showed a dramatic improvement on the microbenchmark. approaching 50% less cpu

[issue19883] Integer overflow in zipimport.c

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: comments added to the patch. -- ___ Python tracker <http://bugs.python.org/issue19883> ___ ___ Python-bugs-list mailin

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-06-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: The upstream Debian issue contains a fix for the bug in eglibc. Python should not attempt to work around this. Distros need to fix their libc if they shipped a broken one. -- components: +Extension Modules resolution: -> not a bug st

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Do you honestly have a situation where you need to share a computationally significant amount of hashing state only to want to finish the computation N different times with alternate computationally significant ending data that multiprocessing would actually

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Please be constructive. There is no way to implement generic pickling for hash objects that would work across all implementations. The underlying code implementing each function is free to store its internal state however it wants and does not provide an

[issue12876] Make Test Error : ImportError: No module named _sha256

2014-07-02 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/issue12876> ___ ___ Pyth

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue6931> ___ ___ Python-

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue6931> ___ ___ Python-bug

[issue21949] Document the Py_SIZE() macro.

2014-07-09 Thread Gregory P. Smith
New submission from Gregory P. Smith: The Py_SIZE() macro is not documented. It should be. It is very useful along with PyList_New(positive_number) after using PyList_SET_ITEM() to fill in up to the first positive_number elements of a list object in the most optimal manner by avoiding

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2014-07-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: (un-cc'ing myself as I can't deal with Windows) -- components: +Tests, Windows -IO ___ Python tracker <http://bugs.python.o

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2014-07-09 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <http://bugs.python.org/issue11361> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16178] atexit._run_exitfuncs should be a public API

2014-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: I don't currently have a need for this so, no. -- ___ Python tracker <http://bugs.python.org/issue16178> ___ ___ Pytho

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: issue14252 appears to have been a fix for the windows side only. On Posix the best that could be done here is to catch OSError within Popen.terminate() and Popen.kill() and ignore the problem if there was an error. We do not have a way to know if the child

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: agreed, we could at least do that for the Popen methods. -- ___ Python tracker <http://bugs.python.org/issue17131> ___ ___

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-20 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue17131> ___ ___ Pyth

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2014-08-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: $SHELL is up to the user and not guaranteed to be anything remotely /bin/sh compatible. On Jul 31, 2014 4:14 PM, "Antoine Pitrou" wrote: > > Antoine Pitrou added the comment: > > Why not simply use $SHELL? > >

[issue21307] PEP 466: backport hashlib changes

2014-08-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: use a frozenset for algorithms_guaranteed. in the docs under more algor... may be available make the two variables link to their docs. you might explicitly mention python 2.7.9 in that paragraph. you probably should use pystring_fromstring imstead of

[issue21307] PEP 466: backport hashlib changes

2014-08-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Keeping the delta small makes sense. I'd use frozenset in 3 as well but its unimportant. LGTM. -- ___ Python tracker <http://bugs.python.org/is

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: modify it as you see fit, i hadn't noticed this issue; just the warnings. -- ___ Python tracker <http://bugs.python.org/is

[issue22530] re rejects index of type long on 2.7

2014-10-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks. btw an alternative type check to consider in these situations: PyIndex_Check https://docs.python.org/2/c-api/number.html#c.PyIndex_Check but what you wrote works. -- nosy: +gregory.p.smith ___ Python

[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C

2014-10-05 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date status: languishing -> closed ___ Python tracker <http://bugs.python.org/issue2552> ___ ___ Pyth

[issue19904] Add 128-bit integer support to struct

2013-12-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: Pick two suitable letters for the int128 and uint128 cases and create a patch for an implementation with tests (targeting Python 3.5). The implementation needs to compile and work even when the platform C compiler Python is compiled with does not have a

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Review comments added. I don't really see why the fix should not be as trivial as: diff -r ca9bca7aecda Lib/telnetlib.py --- a/Lib/telnetlib.py Tue Dec 10 16:06:46 2013 -0600 +++ b/Lib/telnetlib.py Tue Dec 10 18:08:37 2013 -0800 @@ -312,7 +

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-10 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <http://bugs.python.org/issue17200> ___ ___ Python-bugs-list mailing list Un

[issue15032] Provide a select.select implemented using select.poll

2013-12-10 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: anyways, i went with just the simple fix and no specific test for this issue as the tests were painful and questionable reliability. i appreciate the other refactoring suggestion within the code but for 2.7 and 3.3 bugfixes where no significant changes are

[issue15027] Faster UTF-32 encoding

2013-12-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: one comment to address on the review, otherwise after addressing that I believe this is ready to go in for 3.4. -- nosy: +gregory.p.smith priority: low -> normal ___ Python tracker <http://bugs.pyth

[issue19901] tests fail due to unsupported SO_REUSEPORT when building Python 3.3.2-r2

2013-12-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: You didn't do anything wrong. You were running 3.3.3 which is the latest release of 3.3. Portage is Gentoo's thing, you'd have to ask the gentoo python portage ebuild maintainer and point them at the commit with the additional patch to apply

[issue20104] expose posix_spawn(p)

2014-01-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Unless it could replace the fork+exec code path in its entirety, which I do not believe is possible, I see posix_spawn() as a distraction and additional maintenance burden with no benefit. http://pubs.opengroup.org/onlinepubs/759899/functions

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I would not bother pulling this out until the week before RC1 if the standard has not yet been declared final. Otherwise, -1 on keeping it under another name. The only hashes we bundle should be standard ones as those are the only ones people will want to

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given the likely delay in the standard Martin cites, I've change my mind: agreed. Go ahead and remove it for 3.4. We'll have an official sha3 in Python 3.5. Early adopters can live with PyPI. --

[issue19843] Wait for multiple sub-processes to terminate

2014-01-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd rather see it bake in psutils for a while longer regardless of implementation. -- ___ Python tracker <http://bugs.python.org/is

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: attaching a patch for 3.3. up next, 3.4: So long as I get to it before the release candidates the approach can likely be improved for 3.4 to actually hold the zip file we're importing from open for the life of the process instead of doing all of these

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file31869/issue19081-gps02.patch ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file31860/issue19081-gps01.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: The Windows 7 buildbot is unhappy after that change and failing one of the new tests: ERROR: testZipFileChangesAfterFirstImport (test.test_zipimport.ZipFileModifiedAfterImportTestCase) Alter the zip file after caching its index and try an import

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: updated 3.3 patch based off the changes made to the 2.7 one. -- Added file: http://bugs.python.org/file9/issue19081-33-gps05.diff ___ Python tracker <http://bugs.python.org/issue19

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file33323/issue19081-33-gps04.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-07 Thread Gregory P. Smith
New submission from Gregory P. Smith: Python 3.3.3+ (3.3:28337a8fb502+, Jan 7 2014, 01:32:44) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import unittest >>> r

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: somewhat related - https://code.google.com/p/unittest-ext/issues/detail?id=22 -- ___ Python tracker <http://bugs.python.org/issue20

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue20165> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : Added file: http://bugs.python.org/file33356/issue19081-33-gps06.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file9/issue19081-33-gps05.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe this is done. I'm opting not to go for a more complicated "cache the open FILE* with the zip_directory_cache" approach for 3.4 due to complexity and time. long term: It'd be ideal if zipimport weren't a pile of C code s

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Python-bugs-

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not comfortable changing this for 2.7 or 3.3 in case some code is unfortunately is depending on this behavior. But as it is it does seem like the kind of thing that can hide problems (tests that are passing that are not expected to). Here'

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-20 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: 2.7 subprocess is fundamentally flawed and cannot be fixed. Install subprocess32 from PyPI. It's fixed in 3.2 and later. -- nosy: +gregory.p.smith resolution: -> wont fix status: open -> closed ___ Pyt

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: A pointer in the 2.7 subprocess docs to subprocess32 does seem like a good idea, its what i tell everyone to do anyways. :) If you've got a patch for this in 2.7 feel free to add it here and I can take a look. leaving this open as a reminder to

[issue20307] Android's failure to expose SYS_* system call constants causes _posixsubprocess cross-compilation to fail

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: The patch seems reasonable. i'd modify it slightly to include a check the SYS_getdents64 is not already defined before doing the #define. -- assignee: -> gregory.p.smith ___ Python tracke

[issue19936] Executable permissions of Python source files

2014-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: For those four libffi files in msg208964, do what you want with them. I ignored executable bits entirely (didn't set or unset) when importing the code as there is zero need to execute any of them. IMNSHO, I think executable bits should _not_ be set on

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: Not all cases of this were fixed by the existing patch. subimports still trigger the bug via a different code path. attaching an updated unittest that demonstrates that. -- resolution: fixed -> status: closed -> open Added file:

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: The call stack for that code path failing is: #0 get_data (fp=0xf64920, archive=0xe77ecc "/home/greg/sandbox/python/cpython/2.7/junk95142.zip", toc_entry=('/home/greg/sandbox/python/cpython/2.7/junk95142.zip/ziptestpackage/ziptestmod

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: The problem appears to be that every zipimporter instance keeps its own reference to the zip files table of contents (self->files) instead of continually using the module wide zip_directory_cache but the zip_stat_cache is being maintained externally to t

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's a fix that I believe works with one TODO in there that needs investigation due to a question about the current historical zipimport code. -- Added file: http://bugs.python.org/file33614/issue19081-subimport-fix-gps02

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: I refactored the unittests a bit and added another test for subimports when a directory within the .zip file is in sys.path as well. The quizzical "wtf" TODO I had in the code has been "answered" in that I am unable to trigger a situati

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Updated to make that function (zipimporter_init) easier to follow by not repurposing the path variable mid-function and allocate the local path buffer rather than keeping it on the stack. -- Added file: http://bugs.python.org/file33736/issue19081

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in the 2.7 branch. The existing patch in the 3.3 and 3.4 branches is incomplete and does not actually fix the problem. Despite what the Misc/NEWS entry claims. The patch I am attaching now (applies to 3.3, I will forward port it to 3.4) fixes the

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Georg. I'll leave it until after the 3.3.4 release. For simplicity's sake I'll leave it for 3.4.1 as well unless Larry says otherwise. -- priority: release blocker -> deferred blocker

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: documented with a deprecation. that's the best we can do for now. it can be considered for removal in the 3.5 or 3.6 timeframe. i doubt many people used it. -- nosy: +gregory.p.smith resolution: -> fixed status: open -

[issue20621] Issue with zipimport in 3.3.4

2014-02-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: gah. i was tracking this down because I saw some strange errors that made me suspect it might exist (in 2.7) when trying to use a zipped up standard library but had not had time to confirm it. :( I really should have rolled back the CLs causing it before

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-13 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- title: Issue with zipimport in 3.3.4 -> Issue with zipimport in 3.3.4 and 3.4.0rc1 ___ Python tracker <http://bugs.python.org/issu

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith
Changes by Gregory P. Smith : Added file: http://bugs.python.org/file34103/issue20621-34-rollbacks-gps01.diff ___ Python tracker <http://bugs.python.org/issue20

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: if you look at the zipimport.c file log there was one additional tiny change to fix a potential memory leak made after the change I suggested backing out: http://hg.python.org/cpython/log/fb5f4cfc3230/Modules/zipimport.c anyways, yes, backing up to the

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: What do you mean by "everything"? How much did you back out? I *ONLY* wanted the patches I posted in 20621 backed out as those were the source of the problem. The changes made on 2014-01-06 and 2014-01-07 were good even though they only address

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Confirmed that Modules/zipimport.c in the 3.3 and default branches is identical to the version from late last year. Both should be good for 3.3.5 and 3.4.0 releases. -- ___ Python tracker <h

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: At this point i'll be reapplying things since 8dbf8edb7128 to 2.7 and trying to untangle where the problem came in. I confirmed with diff that you've backed everything out to the pre-January state in all branches. I've had part of th

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe this happens on all platforms. -- ___ Python tracker <http://bugs.python.org/issue20621> ___ ___ Python-bugs-list m

[issue20651] 3.4 cherry-pick: 52ab9e1ff46a rolls back bad zipimport changes

2014-02-16 Thread Gregory P. Smith
New submission from Gregory P. Smith: Please cherry-pick 52ab9e1ff46a to roll back the zipimport brokenness. This is the change that fixes issue20621 which is causing a rapid 3.3.5 brown bag release. -- assignee: larry messages: 211391 nosy: gregory.p.smith, larry priority: release

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for trying. :) I've got a complicated "test" case of zipping up the stdlib into python27.zip and running the Python test suite against that which also tends to trigger the bugs. Some tests failing with SystemError and such. It smell

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: there's a separate issue open for you with the necessary rollback patch to apply to your 3.4 release branch. http://bugs.python.org/issue20651 This particular issue is actually solved in default, 3.3 and 2.7 as benjamin did the backouts/rollbacks o

[issue20646] 3.4 cherry-pick: 180e4b678003 select and kqueue round the timeout aways from zero

2014-02-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I don't see why this cannot wait until 3.4.1. True, rounding away from zero is desirable in these cases but it seems like this should be a non issue most of the time and any distro (ubuntu) that picks up 3.4.0 can apply this fix to their own python pa

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2014-03-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue15819> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2014-03-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue19142> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-07-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: *Rereads latest patch* I'm happy with this being backported as a bugfix to 3.1 and 2.6 so long as the set_tunnel method is hidden. Call it _set_tunnel() in the backport (and don't document its

[issue6567] Make inf be almost equal to inf

2009-07-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: good catch. thanks! -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue6567> ___ ___ Python-bug

[issue5511] zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement

2009-07-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> ezio.melotti ___ Python tracker <http://bugs.python.org/issue5511> ___ ___ Python-bugs-list mailing list Un

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-07-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed, a standalone release combined with a public announcement about its availability is a must if we want to get any sort of wide spread testing. It'd be great if we had a fully characterized set of tests for the behavior of the existing engine... b

[issue1115] Minor Change For Better cross compile

2009-07-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: loewis -> gregory.p.smith nosy: +gregory.p.smith priority: low -> normal ___ Python tracker <http://bugs.python.org/

[issue3718] environment variable MACHDEP and python build system

2009-07-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith priority: -> normal ___ Python tracker <http://bugs.python.org/

[issue1006238] cross compile patch

2009-07-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue1006238> ___ ___ Python-

[issue1597850] Cross compiling patches for MINGW

2009-07-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue1597850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5404] Cross-compiling Python

2009-07-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue5404> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: nice test case rhettg. This is a correctness issue to prevent data loss on EINTR. I've attached a patch that builds on rhettg's but allows the EINTR signal to propagate upwards as desired by loweis and jorend for both read() and readli

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: realistically, file objects (Objects/fileobject.c) never raise EINTR as they use the C library fread/fwrite/fclose underneath. Why should a socket based file object every be allowed to raise EINTR rather than handling it internally? IMHO people should

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: for each of these discrepancies that you're finding, please consider submitting them as patches that add a unittest to the existing test suite. otherwise their behavior guarantees will be lost regardless of if the suite in this issue is adopted. t

[issue3392] subprocess fails in select when descriptors are large

2009-08-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: r73916 appears to fix this? -- ___ Python tracker <http://bugs.python.org/issue3392> ___ ___ Python-bugs-list mailin

[issue3392] subprocess fails in select when descriptors are large

2009-08-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: merged into release31-maint in r74425. reopen the issue if this doesn't fix the problem. -- status: open -> closed versions: -Python 2.6 ___ Python tracker <http://bugs.python.or

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r74426. socket.socket.sendall() and all socket._fileobject methods (read/readline/write/flush) now properly handle EINTR internally. sendall will allow a python signal handler to raise an exception aborting it in unknown state, otherwise it

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Note that http://bugs.python.org/issue4879 may have already fixed this problem in trunk r68532. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue2

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Okay, I do not think this has been fixed yet. Anyone calling getresponse() can indeed use buffering=True, it can mess things up if the do not close the connection afterwards. The addition of the sockbuf parameter to HTTPConnection as proposed in

[issue6117] Fix O(n**2) performance problem in socket._fileobject

2009-08-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: backported to release26-maint in r74456. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue6

[issue4879] Allow buffering for HTTPResponse

2009-08-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe there will be a problem with the patch committed in r68532. If getresponse(buffering=True) is called, extra data on the socket may be consumed by the socket.makefile() buffer which will cause problems if the connection is not closed immediately

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Anything that adds a new parameter can not be backported to 2.6 as that counts as an API change / feature addition. -- ___ Python tracker <http://bugs.python.org/issue2

[issue4879] Allow buffering for HTTPResponse

2009-08-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: trunk r74463 now forces the HTTPResponse to close afterwards when buffering=True to avoid the issue. -- ___ Python tracker <http://bugs.python.org/issue4

<    24   25   26   27   28   29   30   31   32   33   >