[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

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

2009-08-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: trunk r74463 now forces the HTTPResponse with buffering=True to close afterwards using a HTTPResponse._must_close flag similar to what was suggested in buffered_socket.diff in this issue. -- ___ Python tracker

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

2009-08-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: I am also unable to reproduce the reported problem using the pastebin.ca/973578 code. The time to download 400mb from localhost remains the same regardless of buffering=False (default) or True. The problem still exists but it is better described in

[issue6665] fnmatch fails on filenames containing \n character

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

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 on the PyXXX_ClearFreeList patch and calling them from gc.collect() as is done with the others. I agree with Guido, don't add a tp_free_list slot as the common case would be NULL. Regarding gc clearing freelists: I agree with Antoine and M

[issue6665] fnmatch fails on filenames containing \n character

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: haha wow I just read the fnmatch code... trunk r2734 | guido | 1992-01-12 added fnmatch._cache for it to cache compiled regular expressions. That has -long- since become unnecessary as the re module does that itself. ;) I'll clean this up while f

[issue6665] fnmatch fails on filenames containing \n character

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: aww, i guess the _cache does cache the result of the glob -> regular expression translation. it needs to stay for that. -- ___ Python tracker <http://bugs.python.org/iss

[issue6665] fnmatch fails on filenames containing \n character

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: changing the '$' to \Z(?ms)' fixes the problem. -- ___ Python tracker <http://bugs.python.org/issue6665> ___ ___

[issue6665] fnmatch fails on filenames containing \n character

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r74475, py3k r74476 -- ___ Python tracker <http://bugs.python.org/issue6665> ___ ___ Python-bugs-list mailin

[issue6665] fnmatch fails on filenames containing \n character

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll backport this to 2.6 and 3.1 later (its too late for 3.1.1). -- versions: -Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/i

[issue6281] Bug in hashlib

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: That code was indeed a mess. I've incorporated most suggestions from your cleaned up version (and fixed a bug in it) in trunk r74479. Have you ever seen __get_builtin_constructor fail in practice? I can imagine that packing up a stripped down p

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yeah I'd take this to the list. Perhaps this is destined to be a public API. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/i

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: btw, when using async io (poll, select, etc) I -think- your socket will see a read event when the server closes the connection (sends you a FIN or even a RST) at which point your sock.recv() when you've been told data was ready will return 0 bytes indic

[issue6721] Locks in python standard library should be sanitized on fork

2009-08-17 Thread Gregory P. Smith
New submission from Gregory P. Smith : The python logging module uses a lock to surround many operations, in particular. This causes deadlocks in programs that use logging, fork and threading simultaneously. 1) spawn one or more threads in your program 2) have at least one of those threads

[issue6724] r74463 causes failures in test_xmlrpc

2009-08-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: hmm apparently the bug i was fixing in r74463 is not actually a bug, the httplib module does not support streaming requests in any way so even with a new socket buffer being constructed per request, the buffer is guaranteed to be empty at the end of

[issue6724] r74463 causes failures in test_xmlrpc

2009-08-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: reverted in r74522 -- ___ Python tracker <http://bugs.python.org/issue6724> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: The decryption provided by the zipfile module is for the worthless 32-bit crc based "encryption" of zipfiles. I think promoting the use of that is a bad idea. zipfile can be used by people to get their data out of such files. We should not enco

[issue6721] Locks in python standard library should be sanitized on fork

2009-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I've started a project to patch this and similar messes up for Python 2.4 and later here: http://code.google.com/p/python-atfork/ I'd like to take ideas or implementations from that when possible for future use in the python standa

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: The people who do not know how to get over that wall would be equally stumped if presented with tokenized .pyc or .pyo files. No fake encryption needed. -- ___ Python tracker <http://bugs.python.org/issue6

[issue4879] Allow buffering for HTTPResponse

2009-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Already reverted in r74522 | gregory.p.smith | 2009-08-18 22:33:48 -0700 (Tue, 18 Aug 2009) for that reason. -- ___ Python tracker <http://bugs.python.org/issue4

[issue6508] expose setresuid

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

[issue6247] should we include argparse

2009-08-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: we should never pretend an old module doesn't exist. leave optparse as optparse. argparse can come in under its own name. we can mark getopt and optparse as deprecated at some point and remove them in 10 years :) +1 on inclusion btw. It looks like

[issue6800] os.exec* raises "OSError: [Errno 45] Operation not supported" in a multithreaded application

2009-08-29 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- priority: -> low ___ Python tracker <http://bugs.python.org/issue6800> ___ ___ Python-bugs-list mailing list Unsubscri

[issue6800] os.exec* raises "OSError: [Errno 45] Operation not supported" in a multithreaded application

2009-08-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: There is no OS level API to kill threads. Python does not kill threads. When you exec, your entire process should be replaced by the OS, threads shouldn't matter they should simply disappear just as the rest of your process state does. This is

[issue1590864] Function-level import in os triggering an threaded import deadlock

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

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-09 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +collinwinter, gregory.p.smith ___ Python tracker <http://bugs.python.org/issue6713> ___ ___ Python-bugs-list mailin

[issue6247] should we include argparse

2009-09-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: On Mon, Sep 14, 2009 at 11:15 AM, Armin Ronacher wrote: > > Armin Ronacher added the comment: > >> @Armin: Doesn't that argument apply to *any* library proposed for >> inclusion in the standard library? By which logic we should ne

[issue6923] Need pthread_atfork-like functionality in CPython

2009-09-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: For reference, this is related to http://bugs.python.org/issue6721 but deals with the C API side of things for an atfork mechanism to be used by extension modules. -- nosy: +gregory.p.smith ___ Python tracker

[issue6721] Locks in python standard library should be sanitized on fork

2009-09-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: issue 6923 has been opened to provide a C API for an atfork mechanism for use by extension modules. -- components: +Library (Lib) ___ Python tracker <http://bugs.python.org/issue6

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-09-29 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/

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-09-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: Documentation note added (copied from tarfile) in trunk r75149, release26-maint r75150 (hopefully in time for 2.6.3 but thats up to Barry). -- ___ Python tracker <http://bugs.python.org/issue6

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: Adding a warning to the documentation is not wrong, it is the only thing that is possible for the 2.6.3 release. Its too late in the current release process to change code. -- ___ Python tracker <h

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-10-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: yes this will be fixed in 2.7/3.2. as for creative uses where someone might want the out of supplied path overwriting behavior? those people are insane and should be made to jump through extra hoops to get it

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-10-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue6972> ___ ___ Python-bugs-list mailin

[issue7079] file_close() ignores return value of close_the_file

2009-10-08 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith priority: -> high ___ Python tracker <http://bugs.python.org/issue7079> ___ ___ Python-bugs-

[issue812369] module shutdown procedure based on GC

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

[issue6721] Locks in python standard library should be sanitized on fork

2009-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: > Antoine Pitrou added the comment: > > Rather than having a kind of global module registry, locks could keep > track of what was the last PID, and reinitialize themselves if it changed. > This is assuming getpid() is fast :-) Locks can&#x

[issue6721] Locks in python standard library should be sanitized on fork

2009-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: no need for that. the problem is that they're held by a thread that does not exist in the newly forked child process so they will never be released in the new process. example: if you fork while another thread is in the middle of logging something and

[issue3488] Provide compress/uncompress functions on the gzip module

2009-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Seems simple enough, I don't see why not. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/i

[issue7242] Forking in a thread raises RuntimeError

2009-10-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: This only appears to happen on Solaris. What version of Solaris are you using? (i doubt that matters, i expect it happens on all versions) I haven't look closely enough at the code yet, but reinitializing the import lock in the child process should

[issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1

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

[issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1

2009-10-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: Peter - can you apply the patch from svn r76000 and test that it works properly on Solaris? -- ___ Python tracker <http://bugs.python.org/issue7

[issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1

2009-10-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: It might mean that other threads with access to the same file handle could interfere and intercept part of the password entry if they wanted to but thats not too concerning. py3k/Modules/_io/bufferedio.c which is presumably used when input is sys.stdin

[issue1006238] cross compile patch

2009-10-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: Documenting the parameters needed to avoid all AC_TRY_RUNs is a good first step for any that are not obvious how to convert from AC_TRY_RUN into something else. -- ___ Python tracker <http://bugs.python.

[issue1006238] cross compile patch

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Removing a toxic person from the cc list. Mike, please go harm some other all volunteer project. -- nosy: -vapier ___ Python tracker <http://bugs.python.org/issue1006

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith components: +Library (Lib) nosy: +gregory.p.smith priority: -> normal title: getpass crashes when several returns are in stdin before getpass was called -> getpass raises IOError when several returns are in std

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: am unable to duplicate this behavior on Linux or OS X using python 2.6. What platform did you see the problem on? that said, can you apply the following patch to your getpass.py and see if it helps at all? http://svn.python.org/view/python/trunk/Lib

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: ah i misread your example. the following works to reproduce it: Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. &

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: and the r76000 patch does not fix it. investigating. -- ___ Python tracker <http://bugs.python.org/issue7246> ___ ___ Pytho

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: change that. it looks like r76000 in trunk already fixes this. i was using an old build when i tried earlier. merged into release26-maint in r76015. -- resolution: -> fixed status: open -> closed ___

[issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: merged into release26-maint in r76015. this patch also fixed issue7246. py3k r76017 release31-maint r76019 -- resolution: -> fixed status: open -> closed versions: -Python 2.6, Python 2.7 ___ Python t

[issue1008086] socket.inet_aton returns 8 bytes on LP64 platforms

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in release26-maint r76022. This will appear in Python 2.6.5. I'm leaving release30-maint alone as it is already in 3.1. sorry for not making it into 2.6.3/2.6.4 despite the code being ready. I should've set this as a relea

[issue6665] fnmatch fails on filenames containing \n character

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: release26-maint r76023 to appear in Python 2.6.5. release31-maint r76024 to appear in Python 3.1.2. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue1115] Minor Change For Better cross compile

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the patch! applied in trunk r76028/r76029. py3k r76030/r76032 There are more of these, other bugs are open that should result in us cleaning them up. see issue1006238 for example. -- resolution: -> fixed status: open ->

[issue1006238] cross compile patch

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: these two have been merged and applied to trunk. """ i fixed the chflags specific check a long time ago (as i imagine others have as well): http://sources.gentoo.org/dev-lang/python/files/python-2.6-chflags- cross.patch same goes for the

[issue6873] posix_lchown: possible overflow of uid, gid

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

[issue6873] posix_lchown: possible overflow of uid, gid

2009-11-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- priority: -> normal ___ Python tracker <http://bugs.python.org/issue6873> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7264] test_threading_local sometimes hangs when run with -R

2009-11-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: How about defining this in threading.py: def _enumerate(): """Internal use only: enumerate() without the lock.""" return _active.values() + _limbo.values() And calling it from _threading_local instead of accessi

[issue3001] RLock's are SLOW

2009-11-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Reviewers: , http://codereview.appspot.com/150055/diff/1/4 File Modules/_threadmodule.c (right): http://codereview.appspot.com/150055/diff/1/4#newcode221 Modules/_threadmodule.c:221: return PyBool_FromLong((long) r); This explicit (long) cast is unnecessary

[issue3001] RLock's are SLOW

2009-11-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Can you make the C implementation's repr() show something similar to the Python implementation? -- ___ Python tracker <http://bugs.python.org/i

[issue6508] expose setresuid

2009-11-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: Attaching an updated patch that includes unittests. I also changed the set functions to take input as long's instead of int's as that is more likely to fit within a uid_t and forced the return values on the get's to fit within a long and use

[issue7322] Socket timeout can cause file-like readline() method to lose data

2009-11-14 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/

[issue7406] int arithmetic relies on C signed overflow behaviour

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

[issue1747858] chown broken on 64bit

2009-12-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: indeed, those were missed. fixed in trunk r77007 and release26-maint r77008. -- ___ Python tracker <http://bugs.python.org/issue1747

[issue6873] posix_lchown: possible overflow of uid, gid

2009-12-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I applied the same fix that was applied to chown in trunk r77007 for lchown and fchown. Could you test it on a platform where it previously failed? The existing code might still have issues if there are platforms where uid_t and gid_t are unsigned but

[issue3745] _sha256 et al. encode to UTF-8 by default

2009-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: lemburg - see which issue #? Anyways perhaps the right thing to do instead of trunk r65961 would have been to change the s# to an s*. Undoing it will be more painful now as several changes have gone in since that require undoing and possibly redoing

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