[issue9545] Adding _collections to static build

2010-08-09 Thread Senthil Kumaran
New submission from Senthil Kumaran : As a fix for issue9396 in r83874, functools was included in re module and this caused a build failure. This was reverted in r83875, with the following message by Raymond: The problem is that the re module is imported by sysconfig and re needs functools whi

[issue4913] wave.py: add writesamples() and readsamples()

2010-08-09 Thread Alex Robinson
Alex Robinson added the comment: Here go, Terry. Copies of the two files in the latest ZIP file. Hmmm. Well. Maybe just one of 'em. Looks like the only way to upload files is to add a msg, so I'll upload the other file in another msg. -- Added file: http://bugs.python.org/file18451/wa

[issue5187] distutils upload should prompt for the user/password too

2010-08-09 Thread Tarek Ziadé
Tarek Ziadé added the comment: no, distutils is feature frozen -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue4913] wave.py: add writesamples() and readsamples()

2010-08-09 Thread Alex Robinson
Alex Robinson added the comment: OK, here's the other. -- Added file: http://bugs.python.org/file18452/test_wave.py ___ Python tracker ___ ___

[issue9545] Adding _collections to static build

2010-08-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in revision 83876. The reverted commit r83875 is re-applied in r83877. -- assignee: -> orsenthil components: +Build nosy: +rhettinger resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2

[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report and for figuring out what was the cause! Indeed the "view" added after the "del" shouldn't be there, so I will remove it. It would also be great if you could provide a minimal script to reproduce the problem so that it can be turned to a tes

[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Martin
Martin added the comment: spiv wrote a script to repo the issue in the downstream ubuntu bug: https://bugs.launchpad.net/python/+bug/615240 -- nosy: +gz ___ Python tracker ___ __

[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Andrew Bennetts
Andrew Bennetts added the comment: I have a reproduction script on the Ubuntu bug report I just filed for this issue: Pasting here for convenience: """ import socket import threading sock_a, sock_b = socket.socketpair() sock_a

[issue8411] Improve condition variable emulation on NT

2010-08-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: You wan't to have the Semaphore with a max count of infinite because a) of the "race condition" mentioned (actually, possible discrepancy between n_waiting and actual semaphore value), which can cause the semaphore count to temporarily go positive, and

[issue5673] Add timeout option to subprocess.Popen

2010-08-09 Thread Pablo Bitton
Pablo Bitton added the comment: I've been using the subprocess-timeout-v5.patch patch with 2.x. Isn't that version supposed to work with 2.x? Other than the stated problem, the patched module generally works, and is very helpful. -- ___ Python tra

[issue5673] Add timeout option to subprocess.Popen

2010-08-09 Thread Tim Golden
Changes by Tim Golden : -- nosy: +tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5416] str.replace does strange things when given a negative count

2010-08-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed the doc string for release27-maint in revision r83879. py3k (r83880) and release31-maint in r83881. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: feature request -> behavior __

[issue1682403] docutils clarification request for "rest"

2010-08-09 Thread Éric Araujo
Éric Araujo added the comment: Is there documentation somewhere that would explain what file to produce with what markup? -- assignee: loewis -> tarek nosy: +merwok, tarek ___ Python tracker ___

[issue9545] Adding _collections to static build

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reverted since it broke the buildbots. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Andrew Bennetts
Andrew Bennetts added the comment: On 2010-05-17 rhettinger wrote: > Will look at this when I get back to the U.S. Ping! This patch (set-difference-speedup-2.diff) has been sitting around for a fair few weeks now. It's a small patch, so it should be relatively easy to review. It makes a si

[issue1116520] Prefix search is filesystem-centric

2010-08-09 Thread Steve Holden
Steve Holden added the comment: Personally I think it's just as relevant as it always was, particularly with the introduction of importlib, but Brett will have a more informed opinion. I won't be surprised if this issue is closed as wontfix. -- ___

[issue9545] Adding _collections to static build

2010-08-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is the message from the buildbot failure: Modules/Setup.dist is newer than Modules/Setup; check to make sure you have all the updates you need in your Modules/Setup file. Usually, copying Modules/Setup.dist to Modules/Setup will work. I am not sure, if a

[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Andrew Bennetts
Andrew Bennetts added the comment: Chatting with Taggnostr on IRC I've trimmed that reproduction down to something much cleaner (no magic numbers or threads involved): import socket sock_a, sock_b = socket.socketpair() sock_a = socket.socket(_sock=sock_a) sock_b.close() file_a = sock_a.makefil

[issue9546] buildbot: if a compile error occurs, the "clean" step is skipped

2010-08-09 Thread Florent Xicluna
New submission from Florent Xicluna : When the buildbot fails to compile, the "clean" step is not run. http://www.python.org/dev/buildbot/builders/i386%20Ubuntu%203.x/builds/1838/ This is a problem for issue #9545 where the Modules/Setup.dist cannot be copied to Modules/Setup on next run (file

[issue9545] Adding _collections to static build

2010-08-09 Thread Florent Xicluna
Florent Xicluna added the comment: See report on issue #9546: the "clean" step should remove "Modules/Setup", but it is skipped. -- dependencies: +buildbot: if a compile error occurs, the "clean" step is skipped nosy: +flox ___ Python tracker

[issue9452] configparser support for reading from strings and dictionaries

2010-08-09 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Patch committed on py3k branch in r83889. -- resolution: -> accepted status: open -> closed ___ Python tracker ___

[issue9546] buildbot: if a compile error occurs, the "clean" step is skipped

2010-08-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue3592] Patch to add imp.get_codingspec()

2010-08-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: We don't need this. We have tokenize.detect_encoding(). -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: r83890 no longer produces the extra argument in help(). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8666] Allow ConfigParser.get*() to take a default value

2010-08-09 Thread Łukasz Langa
Łukasz Langa added the comment: Superseded by #6751 in terms of age. A new patch for the functionality is going to be prepared. -- nosy: +lukasz.langa resolution: -> duplicate status: open -> closed superseder: -> Default return value in ConfigParser

[issue5804] Add an 'offset' argument to zlib.decompress

2010-08-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: decompressobj is indeed "enough". But if you are doing a lot of this (decompressing chunks), then using the unused_data, as it is, involves a lot of copying. If there were a "unused_data_pos" or some equivalent, then it would be possible to continue

[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5673] Add timeout option to subprocess.Popen

2010-08-09 Thread Brian Curtin
Brian Curtin added the comment: "I've been using the subprocess-timeout-v5.patch patch with 2.x. Isn't that version supposed to work with 2.x?" Actually, yes, so I was wrong at first. The v5 patch will work with 2.x, but that's not the most up to date or correct patch. This feature will only

[issue4726] doctest gets line numbers wrong due to quotes in comments

2010-08-09 Thread Florent Xicluna
Florent Xicluna added the comment: Out of date. -- nosy: +flox status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Andrew, This issue is somewhat similar to issue8425. I may be reading too much into the "priority" field, but it looks like Raymond would like to review #8425 first. You can help by commenting on how the two issues relate to each other. I believe t

[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2010-08-09 Thread Alex Quinn
Alex Quinn added the comment: I am on Windows 7. I realized the "echo" command I'm piping to belongs to Cygwin. I'll try to make a different example to either support this, or otherwise close the bug. Thanks! -- ___ Python tracker

[issue9547] iterator length

2010-08-09 Thread Alexandru Moșoi
New submission from Alexandru Moșoi : Sometimes it's useful to get the number of elements yield by an iterator. For example (if ilen is the name of the function): def pi(n): return ilen(for e in xrange(n) if isprime(e)) def count_pred(pred, iterator): return ilen(itertools.ifilter(pred, it

[issue9547] iterator length

2010-08-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please post to python-ideas first. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Benjamin: Previously, .currentframe() == sys._getframe() == sys._getframe(0) but you redefined it as sys._getframe(1), which is a change in semantics. Is this intentional (ie, was it buggy before)? William: Benjamin's point was that the bug was not the doc bu

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/8/9 Terry J. Reedy : > > Terry J. Reedy added the comment: > > Benjamin: Previously, .currentframe() == sys._getframe() == sys._getframe(0) > but you redefined it as sys._getframe(1), which is a change in semantics. Is > this intentional (ie, was it b

[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in release27-maint branch in r83893. I am not sure this belongs in 2.6 and there is a small practical problem with the merge due to Latin-1 encoding used in the 2.6 version. I am also not sure whether keeping separate 2.x and 3.x versions ser

[issue1485576] Backwards compatibility support for Py_ssize_t

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: This request, however legitimate, is completely outdated. -- nosy: +pitrou resolution: -> out of date status: open -> closed ___ Python tracker

[issue949667] setblocking() method on file objects

2010-08-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: unit test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue949667] setblocking() method on file objects

2010-08-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Any clue on where to start to do this? What about Windows where fcntl is not available? -- nosy: +giampaolo.rodola ___ Python tracker ___ _

[issue949667] setblocking() method on file objects

2010-08-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- components: +IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch looks good to me. -- assignee: -> pitrou nosy: +pitrou resolution: -> accepted stage: needs patch -> patch review ___ Python tracker ___

[issue1492240] Socket-object convenience function: getpeercred().

2010-08-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2010-08-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: What's the current status of this issue? I think some of the problems raised at the time this was opened should have been fixed in meantime, like checking for errors in handle_expt_event and handle_connect_event (issue 2944). The handle_close being called

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2010-08-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll be looking at it shortly. Py3.2 is still aways from release so there is no hurry. -- ___ Python tracker ___ __

[issue1673007] urllib2 requests history + HEAD support

2010-08-09 Thread Jack Diederich
Changes by Jack Diederich : -- nosy: +jackdied ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue949667] setblocking() method on file objects

2010-08-09 Thread Tim Golden
Tim Golden added the comment: There are at least two ways to do non-blocking file IO on Windows: Overlapped I/O I/O Completion ports Don't know what's best here, but happy to see what might be achieved if it was thought worth pursuing. -- nosy: +tim.golden ___

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: You ignored my question: why did you change the argument passed on to sys._getframe? -- ___ Python tracker ___

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/8/9 Terry J. Reedy : > > Terry J. Reedy added the comment: > > You ignored my question: why did you change the argument passed on to > sys._getframe? Ah, so that the caller's frame is returned and not currentframe's. -- _

[issue9547] iterator length

2010-08-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: This has been rejected before. The core issue is that it is not a very useful operation because it consumes the iterator. Also, this isn't an operation worth optimizing because most iterators that do something interesting are already slower than a gene

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-09 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: The getters should all accept a `default` argument that's used when no value is found in the configuration. If the default is given, that should be returned (without conversion), instead of raising an exception. This can be included in the same patch. -

[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: At this point, I am sure that Barry would prefer leaving things alone for 2.6. I am surprised that there are separate lists. I thought there was just one which distributions grabbed when made. I suppose that one could claim that someone who only contributes t

[issue949667] setblocking() method on file objects

2010-08-09 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Aug 9, 2010 at 2:16 PM, Terry J. Reedy wrote: .. > I am surprised that there are separate lists. I thought there was just one > which distributions grabbed when made. I don't think this is intentional. More likely committers add acknowledgments

[issue3489] add rotate{left,right} methods to bytearray

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Antoine, do you disagree with Raymond or should we close this? In any case, I believe this would delayed by the moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker

[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker _

[issue6632] Include more fullwidth chars in the decimal codec

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker _

[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Mark Dickinson
Mark Dickinson added the comment: > I believe this is covered by the PEP3003 3.2 change moratorium. No, I don't think so. My understanding is that PEP 3003 doesn't cover new methods on builtin types. int.from_bytes and int.to_bytes are examples of new methods that were added for 3.2. -

[issue3329] API for setting the memory allocator used by Python

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7094] Add alternate float formatting styles to new-style formatting.

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker _

[issue730473] Add Py_AtInit() startup hook for extenders

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue3353] make built-in tokenizer available via Python C API

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1634034] Show "expected" token on syntax error

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue2443] Define Py_VA_COPY macro as a cross-platform replacement for gcc __va_copy

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6081] str.format_from_mapping()

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker _

[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-08-09 Thread mike bayer
mike bayer added the comment: Yeah we are fine if I build the release2.7-maint branch.Also just noticed that this bug prevents really basic things, like using urllib2 from a Pylons application that's running in "daemon" mode. Pretty major, though unusual that I have some colleagues who d

[issue1644818] Allow built-in packages and submodules as well as top-level modules

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker __

[issue1402289] Allow mappings as globals (was: Fix dictionary subclass ...)

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker __

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ _

[issue6632] Include more fullwidth chars in the decimal codec

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +after moratorium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1402289] Allow mappings as globals (was: Fix dictionary subclass ...)

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +after moratorium -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Mark Dickinson
Mark Dickinson added the comment: In fact, PEP 3003 says explicitly, under "Case-by-Case Exemptions": """ New methods on built-ins The case for adding a method to a built-in object can be made. """ So I'm changing the version back to 3.2. Having said that, I'm still -0 on this change.

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Georg Brandl
Georg Brandl added the comment: Terry: due to the additional indirection by making currentframe() a separate function, _getframe(0) would return the frame in currentframe(). -- ___ Python tracker _

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This seems to be about reducing internal resource usage in a way that would be mostly invisible to the normal user. A core surface feature request would have to be put off to 3.3, but I do not see that as such. -- type: feature request -> resource usa

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Would whatever remains of this be deferred by the PEP3003 moratorium? -- nosy: +terry.reedy versions: -Python 2.7, Python 3.1 ___ Python tracker __

[issue5950] Make zipimport work with zipfile containing comments

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-09 Thread Eric Smith
Eric Smith added the comment: I don't think it would be covered by the moratorium, since it's not a language change. The change to make structseq derive from tuple was not subject to the moratorium, for example. -- ___ Python tracker

[issue1173475] __slots__ for subclasses of variable length types

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- keywords: +after moratorium -patch nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker ___

[issue1479611] speed up function calls

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: feature request -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue1498363] Improve super() objects support for implicit method calls

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- keywords: +after moratorium -patch nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker ___

[issue9269] Cannot pickle self-referencing sets

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Library (Lib) -Interpreter Core versions: -Python 2.7 ___ Python tracker ___ ___ Python-bu

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is definitely not covered by the language moratorium. Guido has requested this change and it needs to go forward. -- ___ Python tracker __

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : Consider the two following commands, from an SVN working copy: $ ./python -c 'import heapq; print(heapq.heapify)' $ cat | ./python -c 'import heapq; print(heapq.heapify)' In the second case, the "from _heapq import *" in heapq fails silently. The reason

[issue665761] reduce() masks exception

2010-08-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18453/issue665761-release27.diff ___ Python tracker ___ ___ Python-b

[issue6786] readline and zero based indexing

2010-08-09 Thread James
James added the comment: I'd be writing a patch which would allow a programmer the option to explicitly use/instantiate the library in a zero-based way. This way throughout their particular program, the indexing of elements could be consistent. Not having this causes you to have to reason dif

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lemburg, orsenthil, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attached patch fixes the issue by creating a separate "_bootlocale" module, used at bootstrap, which doesn't import collections, functools and friends. -- keywords: +patch Added file: http://bugs.python.org/file18454/bootlocale.patch _

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-09 Thread Thomas Heller
Thomas Heller added the comment: > Thomas, it seems this change doesn't work for py3k. Buildbots complain and my > working copy does as well. > > Example: > > http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%203.1/builds/990 I do not know why this happens. It works for me, insid

[issue9549] Remove sys.setdefaultencoding()

2010-08-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : The use of sys.setdefaultencoding() has always been discouraged, and it has become a no-op in py3k (the encoding is hard-wired to utf-8 and changing it raises an error). It is time to remove this function entirely. The state of PyUnicode_SetDefaultEncoding(

[issue9549] Remove sys.setdefaultencoding()

2010-08-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch also replaces imports of locale in site.py (since it can be imported early on startup). -- Added file: http://bugs.python.org/file18455/bootlocale.patch ___ Python tracker

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file18454/bootlocale.patch ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-08-09 Thread Brian Curtin
Brian Curtin added the comment: Attached is a patch using Ronald's suggestion to rework this as a switch statement. Also included is a minor reworking that Paul noticed in Lib/test/test_signal.py. Added the people who responded to the python-dev checkin comments to the nosy list. Feel free t

[issue7007] Tiny inconsistency in the orthography of "url encoded" in the doc of urllib.parse

2010-08-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Docs updated in r83900 (py3k), r83903 (release31-maint), r83905 (release27-maint) Modules updated in revision 83901 (py3k), r83904 (release31-maint), r83906 (release27-maint). -- resolution: -> fixed stage: needs patch -> committed/rejected status

[issue9546] buildbot: if a compile error occurs, the "clean" step is skipped

2010-08-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think "cannot be copied" is an exaggeration. Of course it can be copied - it's just that the Makefile skips doing so. What's the specific problem that this causes? Not sure why this had high priority - if anybody wants to fix it, please go ahead. ---

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Chances are that the patch will also fix the test_heapq failures on some buildbots (see e.g. http://www.python.org/dev/buildbot/3.x/builders/x86%20Tiger%203.x/builds/759/steps/test/logs/stdio ). -- ___ Python trac

[issue5950] Make zipimport work with zipfile containing comments

2010-08-09 Thread Georg Brandl
Georg Brandl added the comment: Why? -- versions: +Python 3.2 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

  1   2   >