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

2012-01-10 Thread Paul Smedley
Paul Smedley p...@smedley.id.au 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 rep...@bugs.python.org

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

2012-01-10 Thread Michele Orrù
Michele Orrù maker...@gmail.com 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

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

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file24186/issue13642.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13642 ___

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

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file24192/issue13642_with_map.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13642 ___

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

2012-01-10 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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()

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

2012-01-10 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com 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

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

2012-01-10 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13755 ___

[issue13756] Python3.2.2 make fail on cygwin

2012-01-10 Thread Holger
New submission from Holger hol...@bille.dk: 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

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

2012-01-10 Thread Florian Berger
Florian Berger fber...@florian-berger.de 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

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

2012-01-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: __ap__'s implementation method is about 2x faster than mine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12736 ___

[issue13703] Hash collision security issue

2012-01-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-01-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-01-10 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com 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

[issue9637] docs do not say that urllib uses HTTP_PROXY

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

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 --

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-10 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: This is fixed. Thanks for your contribution. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[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 neolo...@free.fr: 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

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

2012-01-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with the change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13757 ___ ___

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

2012-01-10 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com 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. --

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

2012-01-10 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Eric's suggested doc fix looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13685 ___

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

2012-01-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue12760] Add create mode to open()

2012-01-10 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

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

2012-01-10 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thanks! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13757

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Mon, Jan 9, 2012 at 18:05, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr 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

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2012-01-10 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24142/random.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24193/random-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24143/random-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13703] Hash collision security issue

2012-01-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24196/random-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[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 benja...@python.org: Added file: http://bugs.python.org/file24199/full-casemapping.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12736 ___

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

2012-01-10 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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 ('string' is commonly used). I am not sure what 'recognizable' is supposed

[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 shib...@webcore.co.jp: 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

[issue13760] ConfigParser exceptions are not pickleable

2012-01-10 Thread Faheem Mitha
New submission from Faheem Mitha fah...@faheem.info: 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