[issue6679] obsolete paragraph in re doc for re.sub

2009-08-13 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74365. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-13 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r74366, and merged back to 3.1 branch in r74367. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6693] New functions in site.py to get user/global site packages paths

2009-08-13 Thread Tarek Ziadé
New submission from Tarek Ziadé : As discussed in Distutils-SIG. Here's a patch for site.py that adds: - getsitepackages : Returns a list containing all global site-packages directories (and possibly site-python). - getusersitepackages: Returns the user-specific site-packages directory path.

[issue6693] New functions in site.py to get user/global site packages paths

2009-08-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Two things: * The globals should get a comment explaining what their purpose is and where they are being initialized. * The get*() functions should only initialize the globals if they are set to None. In the patch, they are initialized every time the fun

[issue6694] itertools documentation still contains references to ifilterfalse and izip_longest

2009-08-13 Thread Alex Morega
New submission from Alex Morega : The pages http://docs.python.org/dev/py3k/library/itertools.html and http://docs.python.org/3.1/library/itertools.html contain the names "ifilterfalse" and "izip_longest" in code examples for the "filterfalse" and "zip_longest" functions. -- assignee:

[issue6694] itertools documentation still contains references to ifilterfalse and izip_longest

2009-08-13 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74398. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-13 Thread Matthias Troffaes
New submission from Matthias Troffaes : The Python C API provides PyXXX_ClearFreeList functions to allow the float, int, etc... freelists to be freed, potentially releasing memory to the OS earlier. Currently, there is no such API for the dict, set, and list freelists. The attached patch adds Py

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-13 Thread Matthias Troffaes
Matthias Troffaes added the comment: I attach a second patch which also calls the new PyXXX_ClearFreeList functions on garbage collection, during gc.collect(). -- Added file: http://bugs.python.org/file14709/py3k-clearfreelist-gc_collect.patch ___ Py

[issue6696] Profile objects should be documented

2009-08-13 Thread Alexander Myodov
New submission from Alexander Myodov : Seems like a minor documentation issue in 2.x became more significant one in 3.x. In Python 2.6 (and lower), the documentation on Profile objects discussed them as a part of hotshot module, while omitting the fact that any profiler module, either of prof

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-13 Thread Matthias Troffaes
Matthias Troffaes added the comment: I'm also attaching a test script to check the effect of the two patches on gc.collect(). If many objects are allocated, space savings appear to be relevant. Before applying the patch (debug build on linux 64 bit): Memory used (begin): 121Mb memtest 2

[issue3392] subprocess fails in select when descriptors are large

2009-08-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Unfortunately, this change has broken windows support of the subprocess module, which now reports, on "import subprocess". >>> import subprocess Traceback (most recent call last): File "", line 1, in File "C:\loewis\31\python\lib\subprocess.py", line 390,

[issue3392] subprocess fails in select when descriptors are large

2009-08-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: r73916 appears to fix this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-13 Thread Skip Montanaro
Skip Montanaro added the comment: Instead of expanding the C API for each type which supports a free list perhaps there should be a single call, say, PyObject_ClearFreeList, which takes a pointer to the appropriate type object as an argument. PyTypeObject can then grow a tp_free_list slot throug

[issue3158] Doctest fails to find doctests in extension modules

2009-08-13 Thread Alexey Shamrin
Alexey Shamrin added the comment: I've added Tim Peters to the nosy list. Is there anyone else who should be considered as doctest maintainer? I've also checked further Python versions - a quick a look at latest doctest source shows that the problem is still there. There are some details (and a

[issue5150] IDLE to support reindent.py

2009-08-13 Thread Guilherme Polo
Guilherme Polo added the comment: This has been closed but why not promote reindent.py to a module and add an option on IDLE to allow a complete reindent.py run ? -- ___ Python tracker _

[issue3392] subprocess fails in select when descriptors are large

2009-08-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: merged into release31-maint in r74425. reopen the issue if this doesn't fix the problem. -- status: open -> closed versions: -Python 2.6 ___ Python tracker

[issue4015] [patch] make installed scripts executable on windows

2009-08-13 Thread sorin
sorin added the comment: I totally agree that we must create batch files for commands but not by including python code inside them. -- nosy: +sorin ___ Python tracker ___ ___

[issue3392] subprocess fails in select when descriptors are large

2009-08-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: I will retag 3.1.1rc then... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r74426. socket.socket.sendall() and all socket._fileobject methods (read/readline/write/flush) now properly handle EINTR internally. sendall will allow a python signal handler to raise an exception aborting it in unknown state, otherwise it ha

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-13 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : Python 3.1 segfaults when invalid UTF-8 characters are passed from command line. In BASH shell you can run: $ python3.1 -c $'print("\x80")' Segmentation fault In other POSIX-compatible shells you can save the attached test.py files in c

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-13 Thread R. David Murray
Changes by R. David Murray : -- priority: -> high stage: -> test needed type: -> crash ___ Python tracker ___ ___ Python-bugs-list m

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-13 Thread R. David Murray
Changes by R. David Murray : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-13 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I'm attaching crashers/invalid_utf8_characters_from_command_line.py. -- Added file: http://bugs.python.org/file14712/invalid_utf8_characters_from_command_line.py ___ Python tracker

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file14712/invalid_utf8_characters_from_command_line.py ___ Python tracker ___ __

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file14713/invalid_utf8_characters_from_command_line.py ___ Python tracker ___

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-13 Thread R. David Murray
Changes by R. David Murray : -- stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-13 Thread Alex Willmer
Alex Willmer added the comment: I've made an installable package of Matthew Barnett's patch. It may get this to a wider audience. http://pypi.python.org/pypi/regex Next I'll look at incorporating Andrew Kuchling's suggestion of the re tests from CPython. -- _

[issue6698] IDLE no longer opens only an edit window when configured to do so

2009-08-13 Thread Guilherme Polo
New submission from Guilherme Polo : If someone configure IDLE to start a edit window by default, I believe it should open only an edit window without starting shell window. This has been the behaviour in previous version, but it is acting different now. I looked into r71126 and I think this beh

[issue6699] IDLE: Warn user about overwriting a file that has a newer version on filesystem

2009-08-13 Thread Guilherme Polo
New submission from Guilherme Polo : Creating this issue to address a suggestion of a new IDLE feature pointed out on issue 1721083. The feature in question is about warning the user about a newer version of the file before overwriting it. -- components: IDLE files: check_stmtime.diff k

[issue1721083] Add File - Reload

2009-08-13 Thread Guilherme Polo
Guilherme Polo added the comment: Kurt, there is now a patch on issue 6699 which adds your suggested feature: "Adding a warning when saving that the file has changed on disk is a good emacs feature which has saved my bacon a number of times. That would be a good feature to add to IDLE, but tha

[issue812750] OSA support for properties broken

2009-08-13 Thread Sye van der Veen
Sye van der Veen added the comment: I've attached a patch to remove "a replacement is expected for Python 2.5". -- keywords: +patch nosy: +syeberman status: pending -> open Added file: http://bugs.python.org/file14715/Issue812750.diff ___ Python tra

[issue5689] please support lzma compression as an extension and in the tarfile module

2009-08-13 Thread Nikolaus Rath
Changes by Nikolaus Rath : -- nosy: +Nikratio ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6681] email.parser clips trailing \n of multipart/mixed part if part ends in \r\n

2009-08-13 Thread R. David Murray
R. David Murray added the comment: Looks like it is a regular expression issue. The code is trying to delete the last linend before the boundary, which belongs to the boundary according to the RFC, but it does so with the following RE: (\r\n|\r|\n)$ This RE matches '\r\n' in '\r\n\n', whi

[issue6700] inspect.getsource() returns incorrect source lines

2009-08-13 Thread Gabriel Genellina
New submission from Gabriel Genellina : inspect.getsource(obj) returns incorrect results when obj is a traceback or frame object outside any function (that is, at the module level). This demo script shows the problem. The correct output should contain all source lines in the module, but it on

[issue6700] inspect.getsource() returns incorrect source lines

2009-08-13 Thread Gabriel Genellina
Changes by Gabriel Genellina : Added file: http://bugs.python.org/file14717/show_inspect_bug.py ___ Python tracker ___ ___ Python-bugs-list mai