[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Updated list of failing test with py3k and a non-ascii path: * Linux, LANG=C: test_gc test_gdb test_runpy test_zipimport * Windows: test_email test_httpservers test_zipimport Possible reasons: * test_httpservers

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Case Van Horsen
Case Van Horsen cas...@gmail.com added the comment: I'm the maintainer of a third-party library (gmpy) that would be impacted by this and I'm definately in favor of this change. With ever increasing amounts of memory becoming standard in computers, more users will encounter performance issues

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-17 Thread Michael Olson
Michael Olson ol...@irinim.net added the comment: I wrapped the offending assertion in a if main_name != '__main__'. I considered not checking the module_name against built-in modules but that seemed likely to be the sort of thing being guarded against, so I left it at an exception for

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I updated the note in gdbinit to point to Tools/gdb/libpython.py for py3k (3.2) and 2.7. Thomas: I didn't do anything with your version of pystack because the existing versions in 3.2 and 2.7 appear to work fine for me. --

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is now fixed in r85660. The field associated with a T_BOOL must be of type char, so I changed the type of inTransaction. -- resolution: - fixed status: open - closed ___ Python tracker

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm the maintainer of a third-party library (gmpy) that would be impacted by this and I'm definitely in favor of this change. Assume Python would make such a change, and users would build released gmpy versions for such a Python release.

[issue10073] calendar.isleap() not checking parameter type

2010-10-17 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Let me fix this function a little bit... def isleap(year): Return True for leap years, False for non-leap years. if year == 0: raise ValueError('year 0 does not exist') return (year % 4 == 0) and (year % 100 != 0) or

[issue10132] mkpkg.py is lacked.

2010-10-17 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: The file was renamed to mkcfg.py, but we forgot to rename it in the scripts options in setup.py for py 2.6. This was fixed since then. Until the alpha4 release is out you can make the same change in setup.py for your build to work.

[issue10132] mkpkg.py is lacked.

2010-10-17 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: The file was renamed to mkcfg.py, but we forgot to rename it in the scripts options in setup.py for py 2.6. This was fixed since then. Until the alpha4 release is out you can make the same change in setup.py for your build to work.

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r85655 fixed test_gdb failure. test_runpy failure looks to be linked to test_zipimport problems. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611

[issue9772] test_pep277 failure on AMD64 debian parallel buildbot

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: That appears to be a bug in the NFS server. When you creat(Gr\303\274-Gott), what actually comes out of getdents(3) is Gr\303\274-Gott. This only happens with four bytes of non-ASCII - two UTF-8 bytes are correctly reported. We are

[issue10133] conn_recv_string() broken error handling

2010-10-17 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no: Neither conn_recv_string() nor its callers free *newbuffer on error. The promotion rules break negative 'res' for 64-bit Py_ssize_t in the (ulength = buflength) branch: res = -1 == (UINT32)-1 == Py_ssize_t 0x instead of

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r85659 + r85662 + r85663 fixed test_httpservers. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611 ___

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Here's a patch. Please review. -- keywords: +patch nosy: +benjamin.peterson Added file: http://bugs.python.org/file19257/hash_t.diff ___ Python tracker rep...@bugs.python.org

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: Added file: http://bugs.python.org/file19258/hash_t.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9778 ___

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9778 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9730] base64 docs refers to strings instead of bytes

2010-10-17 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: That fixes the example code, but what about the numerous text that reads strings that should read byte sequences, bytes, or similar? -- ___ Python tracker rep...@bugs.python.org

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2010-10-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Good news: this issue is now fixed in py3k (Python 3.2). I cannot give a commit number, because there are too much commits related to this problem (see #8611 and #9425), but it works ;-) -- resolution: - fixed status:

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-10-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thank you, Martin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845 ___ ___

[issue10132] mkpkg.py is missing

2010-10-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: mkpkg.py is lacked. - mkpkg.py is missing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10132 ___

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: A few comments: - in complex_hash, why did you drop the cast? - in object.rst, add versionchanged. It should also explain that Py_hash_t is a signed integer with the same width as size_t. Otherwise, it looks fine. --

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Dropping the cast was inadvertent. I've now added versionchanged and committed it in r85664. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10133] multiprocessing: conn_recv_string() broken error handling

2010-10-17 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- assignee: - jnoller nosy: +jnoller title: conn_recv_string() broken error handling - multiprocessing: conn_recv_string() broken error handling ___ Python tracker rep...@bugs.python.org

[issue10126] test_distutils failure with --enable-shared

2010-10-17 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Hi Eric, yes, that's basically what I did. See _fix_command(), which *should* be the only thing that needs to be backported. I do believe it's a faulty test and hopefully the comment explains why it's necessary. Thanks for giving the

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: I added a placeholder to the What's New document. Since it will affect extension module authors it should be mentioned at a higher level than just Misc/NEWS. -- ___ Python tracker

[issue1343] XMLGenerator: nice empty/ elements

2010-10-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed Neil's patch (after adding docs) in r85671. Thanks. -- nosy: +r.david.murray resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-17 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: I found a couple of mistakes in the patch I submitted (places where vidle should have been idlelib, and which aren't addressed in Ned Deily's patch), so I've rebuilt the patch starting from the tag r32a3, which I assume is the version

[issue9730] base64 docs refers to strings instead of bytes

2010-10-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I reviewed the doc and tightened up the wording (which was already mostly correct) in r85672. Also fixed one typo and changed it to consistently use 'byte string' (rather than 'bytestring' which was used in one or two places).

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Victor, can you paste or attach the error for email? My MSDN subscription has expired so I can't set up to test it myself (I've submitted the renewal, but who knows how long it will take to process :) -- nosy: +r.david.murray

[issue4499] redefinition of TILDE macro on AIX platform

2010-10-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed to py3k in r85675, 3.1 in r85676, and 2.7 in r85677. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue678250] test_mmap failling on AIX

2010-10-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed to py3k in r85678. If I'm reading this string correctly, I believe this can (and should be) be backported. Am I correct? -- nosy: +r.david.murray resolution: - fixed stage: - committed/rejected

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Case Van Horsen
Case Van Horsen cas...@gmail.com added the comment: The patch does not address that unsigned long is still used to calculate the hash values. This breaks numeric hashing and leads to incorrect values. Python 3.2a3+ (py3k, Oct 17 2010, 19:03:38) [MSC v.1500 64 bit (AMD64)] on win32 Type help,

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Good point. Here's another patch: -- Added file: http://bugs.python.org/file19260/deunsignify.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9778

[issue10134] test_email failures on Windows: end of line issue?

2010-10-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: See attached file for the full output. One example: == CPython 3.2a3+ (py3k:85660, Oct 17 2010, 21:57:48) [MSC v.1500 32 bit (Intel)] == Windows-XP-5.1.2600-SP3 little-endian

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Victor, can you paste or attach the error for email? It doesn't look to be related to the path name (same failure with py3ké or py3k directory name), so I opened #10134. -- ___ Python

<    1   2