[issue13760] ConfigParser exceptions are not pickleable

2012-01-10 Thread Faheem Mitha
New submission from Faheem Mitha : I have not experienced this myself, but see http://stackoverflow.com/questions/2246384/multiprocessing-pool-hangs-when-there-is-a-exception-in-any-of-the-thread This appears to be another case of http://bugs.python.org/issue1692335 I also recently reported a s

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-10 Thread Atsushi Shibata
New submission from Atsushi Shibata : I installed Python 3.2.2 on Macintosh(Snow Leopard), by using installer on python.org. In interactive mode, it does not accept multibyte character. When I type Japanese character on it, it changes to ?. I tried to make Python 3.2.2 by using tar ball on the

[issue13758] compile() should not encode 'filename' (at least on Windows)

2012-01-10 Thread Terry J. Reedy
New submission from Terry J. Reedy : The 3.2.2 doc for compile() says "The filename argument should give the file from which the code was read; pass some recognizable value if it wasn’t read from a file ('' is commonly used)." I am not sure what 'recognizable' is supposed to mean, but as I und

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : Added file: http://bugs.python.org/file24199/full-casemapping.patch ___ Python tracker ___ ___ Python-bugs-list

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24196/random-4.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24143/random-2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24193/random-3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24142/random.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
STINNER Victor added the comment: Patch version 5 fixes test_unicode for 64-bit system. -- Added file: http://bugs.python.org/file24198/random-5.patch ___ Python tracker ___ ___

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-01-10 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch with tests and documentation. I noticed something surprising: walk() with followlinks=False returns links to directories as directories (in dirnames). I find this surprising, since if you don't follow symlinks, those are just files (and y

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4: - os.urandom() raises again exceptions on failure - drop support of VMS (which used RAND_pseudo_bytes from OpenSSL): I don't see how to link Python/random.c to libcrypto on VMS, I don't have VMS, and it don't see how it was working because p

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-10 Thread Brett Cannon
Brett Cannon added the comment: On Mon, Jan 9, 2012 at 18:05, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > > I'm not suggesting two stat calls (in the general case); you would > > call one or the other depending on the magic number of the pyc file. > > The proposal is to st

[issue13757] os.fdlistdir() should not close the file descriptor given in argument

2012-01-10 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue12760] Add create mode to open()

2012-01-10 Thread Charles-François Natali
Charles-François Natali added the comment: Nick suggested to call the new flag "exclusive create" in the doc (and explain in whatsnew that it's based C11 new 'x' flag). Could someone please check the attached patch? My wording sounds really clumsy, so I'd prefer if a native speaker could review

[issue13757] os.fdlistdir() should not close the file descriptor given in argument

2012-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d395ed03f95 by Charles-François Natali in branch 'default': Issue #13757: Change os.fdlistdir() so that it duplicates the passed file http://hg.python.org/cpython/rev/6d395ed03f95 -- nosy: +python-dev _

[issue13685] argparse does not sanitize help strings for % signs

2012-01-10 Thread Steven Bethard
Steven Bethard added the comment: Eric's suggested doc fix looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13757] os.fdlistdir() should not close the file descriptor given in argument

2012-01-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: The reason I made it like that was that it seemed "closer" to the fdopendir() function which steals the fd for internal use. However, I agree that it makes more sense to dup() it. Patch looks good. -- ___ Python t

[issue13757] os.fdlistdir() should not close the file descriptor given in argument

2012-01-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with the change. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13757] os.fdlistdir() should not close the file descriptor given in argument

2012-01-10 Thread Charles-François Natali
New submission from Charles-François Natali : os.fdlistdir() closes the FD passed as argument. This is annoying, since in 99% of the cases you'd like to keep FD intact, so you end up doing os.fdlistdir(os.dup(fd)). Here's a patch that duplicates the FD in fdlistdir(), so that the original FD is

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed. Thanks for your contribution. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a30eae3b945 by Senthil Kumaran in branch '2.7': port to 2.7 - Issue9637 - Details that case of Proxy env var does not matter. http://hg.python.org/cpython/rev/4a30eae3b945 -- ___ Python tracker

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3370fa13ed73 by Senthil Kumaran in branch '3.2': Issue9637 - Explain in getproxies_environment that _proxy environ variable case does not matter. http://hg.python.org/cpython/rev/3370fa13ed73 New changeset eb028b3c62c9 by Senthil Kumaran in branch

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Joonas and Michele - The fix along with the tests is in for 2.7 line. W.r.t to tests having it in the class level buf seems to be only easy way, for other it seemed to be that FakeSocket and FakeConnection stuff need some major change (and resulted in breaki

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01ef13e9e225 by Senthil Kumaran in branch '2.7': - Issue #13642: Unquote before b64encoding user:password during Basic http://hg.python.org/cpython/rev/01ef13e9e225 -- nosy: +python-dev ___ Python tracke

[issue13703] Hash collision security issue

2012-01-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Version 3 of my patch: > - Add PYTHONHASHSEED environment variable to get a fixed seed or to > disable the randomized hash function (PYTHONHASHSEED=0) > - Add tests on the randomized hash function > - Add more tests on os.urandom() You forgot random.c. +

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: __ap__'s implementation method is about 2x faster than mine. -- ___ Python tracker ___ ___ Pytho

[issue5998] Add __bool__ to threading.Event and multiprocessing.Event

2012-01-10 Thread Florian Berger
Florian Berger added the comment: Voting for re-opening. I am currently porting a non-threaded function for use within a threaded application. If threading.Event had __bool__, it would be a drop-in replacement for simple True/False flags that can not be used in multithreaded code. To me, it

[issue13756] Python3.2.2 make fail on cygwin

2012-01-10 Thread Holger
New submission from Holger : Downloaded Python-3.2.2.tar cd Python-3.2.2 ./configure make Fail on: . ranlib libpython3.2m.a make: *** No rule to make target `libpython3.2m.dll.a', needed by `python.exe'. Stop. libpython3.2m.a was built success

[issue13755] str.endswith and str.startswith do not take lists of strings

2012-01-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13755] str.endswith and str.startswith do not take lists of strings

2012-01-10 Thread Eric V. Smith
Eric V. Smith added the comment: It seems like a set would make more sense than a tuple. And if tuples, why not lists? Not that it matters much, since I doubt it's worth changing in either case. It's easy enough for the caller to convert. -- nosy: +eric.smith ___

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
STINNER Victor added the comment: Version 3 of my patch: - Add PYTHONHASHSEED environment variable to get a fixed seed or to disable the randomized hash function (PYTHONHASHSEED=0) - Add tests on the randomized hash function - Add more tests on os.urandom() -- Added file: http://bugs

[issue13755] str.endswith and str.startswith do not take lists of strings

2012-01-10 Thread Mark Dickinson
Mark Dickinson added the comment: No, but they take tuples: >>> 'abcd'.endswith(('a', 'b')) False >>> 'abcd'.endswith(('c', 'd')) True Suggest closing as out of date. -- nosy: +mark.dickinson type: behavior -> enhancement versions: +Python 3.3 -Python 3.1

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file24192/issue13642_with_map.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file24186/issue13642.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Michele Orrù
Michele Orrù added the comment: Whoops, probably I tested using $ python instead of $ ./python.exe - Attaching two patches, one keeps using map(), but definitely changes unquote() behavior; the other simply asserts user_passwd exists before using unquote(). Well, concerning the class field ab

[issue13733] Change required to sysconfig.py for Python 2.7.2 on OS/2

2012-01-10 Thread Paul Smedley
Paul Smedley added the comment: When I get some spare time, I'll test the default code using Andy Mac's last build of Python - which afaik was 2.4.x and see if it works correctly -- ___ Python tracker ___