[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: While I do agree this being an AIX bug, it is not a blocker here: fcntl extension does not _depend_ on flock, it just does _prefer_ flock: If not available, fcntl extension uses something else (fcntl IIRC), as it did (even without linking libbsd) before

[issue9787] Release the TLS lock during allocations

2010-09-06 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : Holding the "keymutex" lock during malloc and free operations is not a good idea. The reason is, that custom implementations of malloc and free, can use the TLS themselves. This is, for example, true in embedded situations, where one wants to repl

[issue9786] Native TLS support for pthreads

2010-09-06 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : 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 review, patch, patch message

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

2010-09-06 Thread Alan McIntyre
Alan McIntyre 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 also suffer from a struct

[issue7889] random produces different output on different architectures

2010-09-06 Thread Raymond Hettinger
Raymond Hettinger 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

[issue9379] random.randrange behaviour problems

2010-09-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a doc fix to r84576. Advice is "don't do that" ;-) -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

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

2010-09-06 Thread Raymond Hettinger
Raymond Hettinger 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 ___ Python tracker

[issue1731717] race condition in subprocess module

2010-09-06 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue3778] python uninstaller leave registry entries

2010-09-06 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +tebeka versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1479626] Uninstall does not clean registry

2010-09-06 Thread Brian Curtin
Brian Curtin 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 ___

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

2010-09-06 Thread Senthil Kumaran
Senthil Kumaran 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. 2.5 behavior is the

[issue6484] No unit test for mailcap module

2010-09-06 Thread R. David Murray
R. David Murray 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 test_listmailcapfiles, you can

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou 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

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé 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: http://www-01.ibm.com/support/docvie

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé 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. -- __

[issue9754] assertWarns and assertWarnsRegexp

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r84563! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé 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 Wednesday (not at work tomorrow)

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

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This was committed in r84562. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

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

2010-09-06 Thread Éric Araujo
Éric Araujo added the comment: Great, thank you! -- resolution: accepted -> fixed stage: needs patch -> committed/rejected ___ Python tracker ___

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

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou 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 ___ Python tracker <

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

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Gosh. My patch is based on an outdated patch :( -- ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou 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 * loads

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

2010-09-06 Thread Alexandre Vassalotti
Alexandre Vassalotti 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: http://bugs.python.org/file18777/issue1694050_19001.diff.txt

[issue9768] IDLE / Black frame in active window

2010-09-06 Thread Ned Deily
Ned Deily 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 _

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
Trigve Siver added the comment: Nevermind, I found out it was problem with ref count while using PyTuple_SetItem() -- resolution: -> invalid status: open -> closed ___ Python tracker _

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

2010-09-06 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg115719 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2010-09-06 Thread Ned Deily
Ned Deily 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 changes were not

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

2010-09-06 Thread Ned Deily
Ned Deily 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 changes were not

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

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou 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 above are enab

[issue7566] Add ntpath.sameopenfile support for Windows

2010-09-06 Thread Brian Curtin
Brian Curtin added the comment: Added in r84561. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

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

2010-09-06 Thread David Watson
David Watson 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 it without null termination,

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

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

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
Trigve Siver 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. -- ___

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

2010-09-06 Thread Brian Curtin
Brian Curtin 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 ___ Python tra

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

2010-09-06 Thread Greg Malcolm
Greg Malcolm 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 ___ Python track

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

2010-09-06 Thread Greg Malcolm
Changes by Greg Malcolm : Removed file: http://bugs.python.org/file18537/test_keyword.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1731717] race condition in subprocess module

2010-09-06 Thread Jonas H.
Changes by Jonas H. : -- nosy: +jonash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Michael Haubenwallner
Michael Haubenwallner 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 fail, which should result in have_f

[issue9780] fill character cannot be '{'

2010-09-06 Thread Eric Smith
Eric Smith 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 object's formatting

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou 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 delegate to the AI

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé 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 init to PyInit_. -- versions: +Python 2.6 -Python 3.2 Added file: http://bugs.python.org/file18768/Python-2.7_shared_AIX.diff

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé 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 between Python 2.6.6 and Pyth

[issue9129] DoS smtpd module vulnerability

2010-09-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: This is already in 2.6 branch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9781] Dead link in Italian Tutorial

2010-09-06 Thread Benjamin Peterson
Benjamin Peterson 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

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : -- versions: +Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18765/python312_AIX61_shared_patch_shared.txt.gz ___ Python tracker ___

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18764/python312_AIX61_static_patch_shared.txt.gz ___ Python tracker ___

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18763/python312_AIX61_static_nopatch.txt.gz ___ Python tracker ___ ___ P

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé 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 are no more warnings for 'Dupl

[issue9785] _PyUnicode_New(), throw and memory problem

2010-09-06 Thread Trigve Siver
New submission from Trigve Siver : 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 _PyUnicode_New():325

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

2010-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 C4244: 'functi

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

2010-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 13>..\Modules\_el

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

2010-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: Project: _mul

[issue9781] Dead link in Italian Tutorial

2010-09-06 Thread Arialdo Martini
Changes by Arialdo Martini : -- title: Dead link -> Dead link in Italian Tutorial ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9781] Dead link

2010-09-06 Thread Arialdo Martini
New submission from Arialdo Martini : 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: normal status: open title: D

[issue8684] improvements to sched.py

2010-09-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Josiah are you still interested in this? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6768] asyncore file_wrapper leaking file descriptors?

2010-09-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Closing out because no response has been provided by the OP. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ __

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

2010-09-06 Thread Mark Dickinson
Mark Dickinson 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, we could clean up s

[issue4499] redefinition of TILDE macro on AIX platform

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé 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 -I/home/cis/data/bamboo-home-agent-runtime/xml

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

2010-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Implemented in py3k r84554. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[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 : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[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 : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-09-06 Thread Georg Brandl
Changes by Georg Brandl : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Uns