[issue1552880] [Python2] Use utf-8 in the import machinery on Windows to support unicode paths

2010-09-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Having patches in the tracker is fine to me. Even if the patch is closed, it's still available. Of course, there are many ways to publish code on the net: you could post the patch to Rietveld, to the Python wiki, or publish an entire clone

[issue9780] fill character cannot be '{'

2010-09-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed docs in r84553. (That builtin format() supports this is no surprise, and has no influence on the validity in format strings.) -- nosy: +georg.brandl resolution: - fixed status: open - closed

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9116 ___

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8959 ___

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9437 ___

[issue9662] ctypes not building under OS X because of ffi_closure_free not being defined early enough

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9662 ___

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

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611 ___

[issue7418] hashlib : the names of the different hash algorithms

2010-09-06 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Implemented in py3k r84554. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7418 ___

[issue4499] redefinition of TILDE macro on AIX platform

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: I can confirm that this problem is still present with Python 3.1.2 on AIX 6.1. This is just a compilation warning, but the patch in msg110771 correctly cleans it. xlc_r -c -DNDEBUG -O -I. -IInclude -I./Include

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

2010-09-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: ... change all hash values to be of Py_ssize_t values rather than C longs ... Yes, please! (Provided this change can go in before 3.2.) For the numeric types at least, this should be a straightforward adjustment. And while we're at it,

[issue6768] asyncore file_wrapper leaking file descriptors?

2010-09-06 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closing out because no response has been provided by the OP. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6768

[issue8684] improvements to sched.py

2010-09-06 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Josiah are you still interested in this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8684 ___

[issue9781] Dead link

2010-09-06 Thread Arialdo Martini
New submission from Arialdo Martini arialdo.mart...@gmail.com: In the Italian version of the Official Turorial, the link to Python Bug Tracker is dead. -- assignee: d...@python components: Documentation messages: 115698 nosy: Arialdo.Martini, d...@python priority: normal severity:

[issue9781] Dead link in Italian Tutorial

2010-09-06 Thread Arialdo Martini
Changes by Arialdo Martini arialdo.mart...@gmail.com: -- title: Dead link - Dead link in Italian Tutorial ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9781 ___

[issue9782] _multiprocessing.c warnings under 64-bit Windows

2010-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: There are various warnings when compiling the _multiprocessing extension in 64-bit mode under Windows. Many seem related to the fact that read() and friends under Windows take int size arguments rather than size_t. 20-- Build started:

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Some of these warnings could be serious (e.g. the one where the 64-bit self is converted to a 32-bit long): 13..\Modules\_elementtree.c(696) : warning C4244: 'function' : conversion from 'Py_uintptr_t' to 'long', possible loss of data

[issue9784] _msi.c warnings under 64-bit Windows

2010-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: I'm posting this in case it is a sign of a problem. Apparently some variable named hf is an INT_PTR used as an int (according to Visual Studio), but hf doesn't seem to be defined or declared in _msi.c at all. 12..\PC\_msi.c(66) : warning

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
New submission from Trigve Siver trig...@gmail.com: I'm using C++ with python embeding. I'm creating a couple of unicode objects and then some exception is thrown. While handling exception I create othet unicode objects. Then when creating some unicode object crash occurs. The problem is in

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Hi, I have updated the patch and adapted it for Python 3.1.2: * this time ld_so_aix is moved to ld_so_aix.in which is converted to ld_so_aix by 'configure' so that it has the right version number for the python library * there

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: Added file: http://bugs.python.org/file18763/python312_AIX61_static_nopatch.txt.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue941346 ___

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: Added file: http://bugs.python.org/file18764/python312_AIX61_static_patch_shared.txt.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue941346

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: Added file: http://bugs.python.org/file18765/python312_AIX61_shared_patch_shared.txt.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue941346

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue941346 ___

[issue9781] Dead link in Italian Tutorial

2010-09-06 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: We don't maintain an Italian version of the tutorial. You'll have to contact its maintainer. -- nosy: +benjamin.peterson resolution: - wont fix status: open - closed ___ Python tracker

[issue9129] DoS smtpd module vulnerability

2010-09-06 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: This is already in 2.6 branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9129 ___

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Here is the version of the patch for Python 2.7. I had to change AC_TRY_COMPILE to AC_COMPILE_IFELSE and AC_TRY_LINK to AC_LINK_IFELSE. The syntax in configure.in is the same between Python 2.7 and the trunk. It is also the same

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you. For the record, here is the patch adapted for 3.2 development branch. It looks ok to me. -- stage: unit test needed - patch review versions: +Python 3.2 -Python 2.6 Added file: http://bugs.python.org/file18767/aix32.diff

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Here is the patch for Python 2.7. The only difference compared to Python 3.1.2 is that we don't rename initmodulname to PyInit_modulename. -- versions: +Python 2.6 -Python 3.2 Added file:

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: * there are no more warnings for 'Duplicate symbol': I changed build_ext.py to not link extensions with libpython since the symbols are already defined by python.exp Could this affect building extensions with gcc under AIX? Or does gcc

[issue9780] fill character cannot be '{'

2010-09-06 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Sorry to respond late. The reason for this is that the parsing of the string (as delimited by { and }) happens before the results are then interpreted as format specifiers. There's no way around it, short of the parser understanding every

[issue1731717] race condition in subprocess module

2010-09-06 Thread Jonas H.
Changes by Jonas H. jo...@lophus.org: -- nosy: +jonash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731717 ___ ___ Python-bugs-list mailing list

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Michael Haubenwallner
Michael Haubenwallner michael.haubenwall...@salomon.at added the comment: While I've not tested these patches myself, I do think there still is an unhandled case: building a 64bit python. As libbsd.a contains 32bit objects only, there is no 64bit flock(). So AC_CHECK_LIB(bsd,flock) may still

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2010-09-06 Thread Greg Malcolm
Changes by Greg Malcolm g...@gregmalcolm.com: Removed file: http://bugs.python.org/file18537/test_keyword.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9607 ___

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2010-09-06 Thread Greg Malcolm
Greg Malcolm g...@gregmalcolm.com added the comment: Thanks for the feedback David! I've replaced the old patch with a new version that uses Popen/sys.executable as suggested. - Greg -- Added file: http://bugs.python.org/file18769/test_keyword_v2.patch

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-09-06 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Checked in the suggested fixes in r84556 (py3k), r84557 (release27-maint), and r84558 (release27-maint). -- resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
Trigve Siver trig...@gmail.com added the comment: I've tried to examine it in more depth. Setting the python exception isn't necessary, only throwing the C++ exception is needed for demonstrating the problem. Also sometimes the address is 6 bytes lower than should be. --

[issue8956] Incorrect ValueError message for subprocess.Popen.send_signal() on Windows

2010-09-06 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Fixed in r84559 (py3k) and r84560 (release27-maint). -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-06 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: baikie, coming back to your original message: what precisely makes you believe that sun_path does not need to be null-terminated on Linux? That's the way I demonstrated the bug - the only way to bind to a 108-byte path is to pass

[issue7566] Add ntpath.sameopenfile support for Windows

2010-09-06 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Added in r84561. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7566

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch doesn't apply cleanly anymore. Furthermore, I discovered some additional issues: - load, dump, loads and dumps from the _pickle module were never used because they were shadowed by the same functions in pickle.py - once the C functions

[issue9763] Crashes upon run after syntax error encountered in OSX 10.5.8

2010-09-06 Thread Ned Deily
Ned Deily n...@acm.org added the comment: IDLE from the Python 3.2s2 OS X installer exhibits the same buggy behavior on 10.5 as 3.1.2 (hangs with system Tk 8.4, OK with ActiveState Tk 8.4). There also seem to be some unexpected differences in IDLE behavior between 2.7 and 3.x as if some

[issue9763] Crashes upon run after syntax error encountered in OSX 10.5.8

2010-09-06 Thread Ned Deily
Ned Deily n...@acm.org added the comment: IDLE from the Python 3.2a2 OS X installer exhibits the same buggy behavior on 10.5 as 3.1.2 (hangs with system Tk 8.4, OK with ActiveState Tk 8.4). There also seem to be some unexpected differences in IDLE behavior between 2.7 and 3.x as if some

[issue9763] Crashes upon run after syntax error encountered in OSX 10.5.8

2010-09-06 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg115719 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9763 ___ ___

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
Trigve Siver trig...@gmail.com added the comment: Nevermind, I found out it was problem with ref count while using PyTuple_SetItem() -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9768] IDLE / Black frame in active window

2010-09-06 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Closing as works for me. If you have a suggestion for a change to IDLE behavior, suggest discussing on the IDLE development list or opening a new issue and supply a patch. -- resolution: - works for me status: open - closed

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-09-06 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Antoine, I fixed these issues in the latest patch posted on Rietveld. Also, Skip added the buffer limit in Unladen Swallow (see msg112956). We just need to merge that. -- Added file:

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. Benchmark numbers: * dumps(): ./python -m timeit -s import pickle, io; d={(x, 'a'): x for x in range(1)} pickle.dumps(d) - before: 100 loops, best of 3: 7.47 msec per loop - after: 100 loops, best of 3: 2.45 msec per loop

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Gosh. My patch is based on an outdated patch :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9410 ___

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, this patch merges my changes with Alexandre's previous patch. Performance is similar as the previous posted patch. -- Added file: http://bugs.python.org/file18779/pickle_optimizations5.diff ___

[issue7418] hashlib : the names of the different hash algorithms

2010-09-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great, thank you! -- resolution: accepted - fixed stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7418

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This was committed in r84562. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5506

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Yes Antoine, gcc only handles compilation; the linker is explicitly called through the ld_so_aix script which handles calling the native ld with the right flags to import symbols. I will check with gcc and attach the log on

[issue9754] assertWarns and assertWarnsRegexp

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r84563! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9754

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Hum, forget my previous note;I checked ld_so_aix and it actually calls $CC to handle linking not ld. I suppose gcc will call the native ld. Anyway, I will run the test with gcc on Wednesday and know for sure if that works.

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: [rant: grrr, AIX is really a crappy platform; no consistency between releases; there are dozens of obvious bugs like that... anyway...] The fact that there is no 64 bits objects in libbsd.a on AIX 6.1 is a documented bug:

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, I suppose if flock needs libbsd on AIX (which is quite weird in itself), and AIX fails to ship libbsd for some executable formats, then it's AIX's problem. -- nosy: +pitrou ___ Python tracker

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Anyway, I will run the test with gcc on Wednesday and know for sure if that works. Thank you! If it works, it's good for commit. -- ___ Python tracker rep...@bugs.python.org

[issue6484] No unit test for mailcap module

2010-09-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for contributing this; sorry it took so long to get a review. Overall the tests look good (I didn't work through the logic of each test that looks up data; I'm trusting you on that part :) Here are some comments: 1) In

[issue9721] urlparse.urljoin() cuts off last base character with semicolon at url start

2010-09-06 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Simply applying the patch would break the testsuite of urlparse ( test_RFC3986 case of urljoin for ';' starting joinurls). The expected behavior should be trim off all receding chars until a '/' and then join the semi-colon starting url.

[issue1479626] Uninstall does not clean registry

2010-09-06 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: #3778 covers the same issue and has more discussion. Closing this as a duplicate. -- resolution: - duplicate stage: unit test needed - committed/rejected status: open - closed superseder: - python uninstaller leave registry entries

[issue3778] python uninstaller leave registry entries

2010-09-06 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +tebeka versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3778 ___ ___

[issue1731717] race condition in subprocess module

2010-09-06 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731717 ___ ___ Python-bugs-list

[issue9025] Non-uniformity in randrange for large arguments.

2010-09-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Put in a fix with r84576. May come back to it to see if it can or should be optimized with C. For now, this gets the job done. -- resolution: - fixed status: open - closed ___

[issue9379] random.randrange behaviour problems

2010-09-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Added a doc fix to r84576. Advice is don't do that ;-) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9379

[issue7889] random produces different output on different architectures

2010-09-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed in r84574 and r84576. The seed function no longer uses hash() for str, bytes, or bytearray arguments. -- resolution: - fixed status: open - closed ___ Python tracker

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-06 Thread Alan McIntyre
Alan McIntyre alan.mcint...@gmail.com added the comment: Here's an updated patch for the py3k trunk with tests. This pretty much doubles the runtime of test_zipfile64.py. The patch also removes some unnecessary code from the existing test_zipfile64 tests. Note: It looks like writestr will

[issue9786] Native TLS support for pthreads

2010-09-06 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: The following patch adds native TLS implementation for pthreads, avoiding the relatively slow and clunky default tls implemented in thread.c -- components: Interpreter Core files: pthread_tls.patch keywords: needs