[issue1757126] [PATCH] Fix ptcp154 encoding cyrillic_asian alias

2009-02-04 Thread Philip Jenvey
Changes by Philip Jenvey : -- title: Fix ptcp154 encoding cyrillic_asian alias -> [PATCH] Fix ptcp154 encoding cyrillic_asian alias ___ Python tracker ___

[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro
Changes by Skip Montanaro : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Ryan Freckleton
Ryan Freckleton added the comment: I think that registering existing functions is an important use case, so I vote for keeping the non-decorator version of register. Another thing that we may want to document is that [simple]generic doesn't dispatch based on registered abstract base classes. >

[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ("bad file descriptor" in q.get())

2009-02-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro
Skip Montanaro added the comment: Here's a patch against trunk. Extra test case and minor doc tweak included. -- keywords: +patch Added file: http://bugs.python.org/file12945/gzipU.diff ___ Python tracker

[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ("bad file descriptor" in q.get())

2009-02-04 Thread Beau Butler
Beau Butler added the comment: Also reproduced in Python3.0 on OSX 10.5 -- versions: +Python 3.0 ___ Python tracker ___ ___ Python-bug

[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ("bad file descriptor" in q.get())

2009-02-04 Thread Beau Butler
Changes by Beau Butler : -- title: Multiprocessing.Queue created by sub-process fails when used in sub-sub-process -> Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ("bad file descriptor" in q.get()) ___ Python track

[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process

2009-02-04 Thread Beau Butler
Changes by Beau Butler : -- title: Multiprocessing.Queue created by subprocess fails when used in sub-sub-process -> Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ___ Python tracker

[issue5155] Multiprocessing.Queue created by subprocess fails when used in sub-sub-process

2009-02-04 Thread Beau Butler
New submission from Beau Butler : (Note: This issue only happens on linux - on Windows things work fine.) Please see the attached script. The script creates a process (TestProcess()). That process runs and creates a sub-process (TestSubProcess()). When TestSubProcess tries to access a Queue cre

[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-02-04 Thread And Clover
And Clover added the comment: > The problem is that codecs.open() forces binary mode on the underlying file object, and this defeats the U mode. Actually the problem is it doesn't defeat it! The function is documented to force binary, but it actually only does "mode = mode + 'b'", which can le

[issue3766] socket.socket.recv broken (unbearably slow)

2009-02-04 Thread Sam
Sam added the comment: I know this bug is closed, but I too am experiencing it under Linux 2.6.24-22 and Python 2.5.2. I'm using urllib2, and it's just spending an obscene amount of cpu time in {method 'recv' of '_socket.socket' objects} Anyone have any ideas? Would switching to httplib

[issue2236] Distutils' mkpath implementation ignoring the "mode" parameter

2009-02-04 Thread Akira Kitada
Akira Kitada added the comment: Still present in 2.6/3.0 -- nosy: +akitada, tarek type: resource usage -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker __

[issue1276768] dirutils.mkpath (verbose option does not work)

2009-02-04 Thread Akira Kitada
Akira Kitada added the comment: Still present in 2.6/3.0 -- nosy: +akitada, tarek type: feature request -> behavior versions: +Python 2.7, Python 3.0, Python 3.1 ___ Python tracker __

[issue1520877] Distutils bugfix: Read $AR from the environment/Makefile.

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker ___ __

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
Ben Bangert added the comment: Ah, sorry, misunderstanding. I'm not recommending that Python copy Apple's patch. I was pointing out that the HAVE_BROKEN_POLL test apparently doesn't work, and that *all* manually compiled copies of Python done on OSX will suffer this socket 35 error without havin

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore added the comment: Agreed about the compatibility. It's there from pkgutil, where to be honest, it's even less necessary, as simplegeneric was for internal use only, there. I'm certainly not aware of any backward compatibility requirements for functools. Assuming nobody speaks up to

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I don't know specifically, Phil Jenvey probably would as he's the one > that told me it is. Apple apparently knows this an turns it off in their > version of Python that is supplied. That's not a sufficient reason to copy their work-around. A problem must be

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
Ben Bangert added the comment: I don't know specifically, Phil Jenvey probably would as he's the one that told me it is. Apple apparently knows this an turns it off in their version of Python that is supplied. ___ Python tracker

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: In what specific way is poll() broken? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list

[issue2942] mingw/cygwin do not accept asm file as extension source

2009-02-04 Thread Roumen Petrov
Roumen Petrov added the comment: Hi shura_zam, I test this patch in issue3871 but without success - setup.py don't try to build ctypes module. May I ask you to post a sample. -- nosy: +rpetrov ___ Python tracker __

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Eric Smith added the comment: > "... as a named tuple" works for me. I'll go with that. Thanks! +1 Remember, "named tuple" is a concept, not a class. It is anything that provides attribute access as an alternative to indexed access (see the definition

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
New submission from Ben Bangert : OSX 10.5 has a broken poll, this is an already known issue as I noticed there's even a HAVE_BROKEN_POLL option that is in the source: http://mail.python.org/pipermail/python-checkins/2006-April/051710.html However, this run-time check apparently does not work, a

[issue3871] cross and native build of python for mingw32 with distutils

2009-02-04 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file12272/python-trunk-MINGW.patch ___ Python tracker ___ ___ Python-bugs-list

[issue3871] cross and native build of python for mingw32 with distutils

2009-02-04 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file11665/python-trunk-MINGW.patch ___ Python tracker ___ ___ Python-bugs-list

[issue3871] cross and native build of python for mingw32 with distutils

2009-02-04 Thread Roumen Petrov
Roumen Petrov added the comment: attached patch for trunk-20090204: - removed patch from issue4587 (not relevant for mingw) ; - improved static build now succeed (use --disable-shared). this is follow-up of issue4494 + ... (don't expect loadable modules to work on windows) ; - restore wi

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Christian Heimes
Christian Heimes added the comment: Technically it's not a named tuple. Calling it named tuple may cause confusing. http://docs.python.org/library/os.html#os.stat calls it a structure. ___ Python tracker ___

[issue5125] Strange locale problem with Python 3

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5141] C API for appending to arrays

2009-02-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: Arrays already support the buffer interface -- nosy: +gagenellina ___ Python tracker ___ ___ Pyth

[issue1079] decode_header does not follow RFC 2047

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Duncan McGreggor
Duncan McGreggor added the comment: > If changes to ipaddr could make things easier for netaddr's support > of advanced features, please do propose those changes! Thanks, Guido -- we will :-) We'll be watching closely for that and participating as much as possible.

[issue5015] The Py_SetPythonHome C API function is undocumented

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4753] Faster opcode dispatch on gcc

2009-02-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: > Might I suggest that the TARGET and TARGET_WITH_IMPL macros not > include the trailing colon? Yes, please! -- nosy: +gagenellina ___ Python tracker

[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Lars Gustäbel
Lars Gustäbel added the comment: Never mind! Thank you anyway for your report. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson
Nicholas Patterson added the comment: Yep that fixed it, sorry to have used up your time. Still a bit new to the search feature on the site, didn't notice the form defaulted to only searching on open bugs/issues. ___ Python tracker

[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Lars Gustäbel
Lars Gustäbel added the comment: Could you try to do a test with the patch from issue1735? It is rather trivial to apply. ___ Python tracker ___ __

[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson
Nicholas Patterson added the comment: Using 2.5.0 on SLES 10 servers and 2.5.1 on Solaris 10 servers. Have only tested SLES so far since that's our main platform. ___ Python tracker ___

[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Lars Gustäbel
Lars Gustäbel added the comment: This is probably a duplicate of issue1735, which was fixed in r59713, i.e. between 2.5.1 and 2.5.2. Are you by any chance using Python 2.5.1? -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker <

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here is the patch implementing msg81093. (check_fd.patch) I tested this on VC6. (test_os passed) I hope this also works on VC9 as well. Added file: http://bugs.python.org/file12942/check_fd.patch ___ Python tracker

[issue3783] dbm.sqlite proof of concept

2009-02-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue2527] Pass a namespace to timeit

2009-02-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: -> normal versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___ ___ Python-

[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro
Skip Montanaro added the comment: Seems like this should be fairly easy to do right. 'U' needs to be removed from the flags but then applied to the lines read from the stream. -- keywords: +easy nosy: +skip.montanaro stage: -> needs patch ___ Pytho

[issue5152] Add a JSON-RPC module

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: I think this feature request is out of scope for this bug tracker. To fulfill the request, one not only has to *add* the module, but to *implement* it first. Since there is no inherent need for such a module to be provided with the standard library, somebody i

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Walter Dörwald
Walter Dörwald added the comment: The patch looks fine to me. Tests pass. I have no opinion about the name. Both "simplegeneric" and "generic" are OK to me. I wonder if being able to use register() directly instead of as a decorator should be dropped. Also IMHO the Python 2.3 backwards compat

[issue3783] dbm.sqlite proof of concept

2009-02-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I put an alternative in the sandbox /dbm_sqlite/alt/dbdict.py and am attaching a copy here. The idea is to emulate gdbm's fast mode and delay all writes until closing. That lets us subclass from dict and get high-speed lookups, sets, and deletions. F

[issue5153] Extra ) in optparse sample

2009-02-04 Thread Adam Vandenberg
New submission from Adam Vandenberg : In the "Callback example 6: variable arguments" section of the optparse documentation, the example code has an extra ) at the end of the last line of the function: setattr(parser.values, option.dest, value)) -- assignee: georg.brandl components: Doc

[issue4124] Patch for adding "default" to itemgetter and attrgetter

2009-02-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5152] Add a JSON-RPC module

2009-02-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : Add a JSON analogue to xmlrpclib. See: http://en.wikipedia.org/wiki/JSON-RPC In some ways, it is much nicer than its XML cousin with bi-directional communication, faster/simpler parsing, and ability to use TCP/IP directly (not requiring HTTP transport).

[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: Does the problem exist in 2.6 still? If you can't determine that easily, can you please provide a reproducible test case (e.g. some tar(1) created tar file plus a Python script) -- nosy: +loewis ___ Python tracker

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: > in light of david's email, would you agree that the bar for buy-in has > been met or should I now start writing a PEP and preparing offerings > for the BDFL? Yes, I think it can be integrated now. I'll look into it, unless somebody is faster (it could well t

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Guido van Rossum
Guido van Rossum added the comment: If changes to ipaddr could make things easier for netaddr's support of advanced features, please do propose those changes! ___ Python tracker ___ _

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith
Eric Smith added the comment: "... as a named tuple" works for me. I'll go with that. Thanks! ___ Python tracker ___ ___ Python-bugs-list maili

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Brett Cannon
Brett Cannon added the comment: On Wed, Feb 4, 2009 at 05:56, Eric Smith wrote: > > Eric Smith added the comment: > > The doc string for sys includes: > version_info -- version information as a tuple > > I'm not sure changing this to "... as a structseq" makes it any more > useful, but it's mo

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Duncan McGreggor
Duncan McGreggor added the comment: Antione, We're (netaddr) going to try to use ipaddr if possible, but there are operations which we are providing to API users that aren't directly supported by ipaddr. We haven't yet determined the level of effort involved in trying to work with ipaddr's bas

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Probably it has already been said, but for the record: is ipaddr's current API ok for other libraries (mainly: netaddr) to build upon it and provide compatible extensions or replacements, or would netaddr become an incompatible alternative to the stdlib-provided

[issue2204] document ConfigParser behaviour when a file has same section multiple times

2009-02-04 Thread Yannick Gingras
Yannick Gingras added the comment: The attached patch is a proof of concept for throwing an exception. As discussed on the mailing list [1], it has some shortcomings that should be addressed before it is merged. [1]: http://mail.python.org/pipermail/python-dev/2009- -- keywords: +patc

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread David Moss
Changes by David Moss : -- nosy: -drkjam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think a PEP is needed, and I do think ipaddr.py is ready for inclusion. All that you really need is a core developer to champion the inclusion. ___ Python tracker ___

[issue4577] distutils: -3 warnings (apply)

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue828336] Allow set swig include dirs in setup.py

2009-02-04 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue901727] extra_path kwarg to setup() undocumented

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada : -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl, tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker __

[issue828336] Allow set swig include dirs in setup.py

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek type: -> feature request versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3 ___ Python tracker ___

[issue809163] Can't add files with spaces

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada : -- type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3 ___ Python tracker ___

[issue808129] Change --changelog to accept files

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada : -- type: -> feature request versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3 ___ Python tracker ___ _

[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson
New submission from Nicholas Patterson : Used the TarFile object to create a bzip2 compressed tar file (seems to have worked fine). Then used the extractall method to restore the archive in a new location. All the files appear to have the same permissions and owner:group as before, but most of

[issue1019715] distutils ignores configure's --includedir

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1019715] distutils ignores configure's --includedir

2009-02-04 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___ ___

[issue962772] when both maintainer and author provided, author discarded

2009-02-04 Thread Tarek Ziadé
Tarek Ziadé added the comment: the Author metadata uses the maintainer field *or* the author field if the maintainer is not provided. What would be the rational to add a new maintainer field in the PKG-INFO ? In the first place, I am wondering what is the rational, today, to use the maintainer

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread pmoody
pmoody added the comment: > I could live with such a choice if the netaddr authors agree that it > is the right choice (them being experts themselves in the domain). > I don't want to be accused of drkjam's accusation of fast-tracking > code just because it comes from Google (which would be a fa

[issue962772] when both maintainer and author provided, author discarded

2009-02-04 Thread Akira Kitada
Akira Kitada added the comment: """ from distutils.core import setup setup(name="foo", author="bar", maintainer="baz") """ gives me """ Metadata-Version: 1.0 Name: foo Version: 0.0.0 Summary: UNKNOWN Home-page: UNKNOWN Author: baz Author-email: UNKNOWN License: UNKNOWN Description: UNKNOWN Platf

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith
Eric Smith added the comment: The doc string for sys includes: version_info -- version information as a tuple I'm not sure changing this to "... as a structseq" makes it any more useful, but it's more correct. Does anyone have a preference? I'd use the same wording as float_info, but that's mis

[issue3166] Make conversions from long to float correctly rounded.

2009-02-04 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore added the comment: Fair comment. As Ryan said, it's a bit of a bikeshed issue. I prefer "generic", on the basis that I'd prefer to keep the simple name for the simple use - something as complex as the RuleDispatch version could use the name "dispatch" (if they want to keep it the name

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: The reason I like the simplegeneric name is that that is exactly what this feature is: a *simple* generic implementation that is deliberately limited to dispatching on the first argument (because that is easily explained to users that are already familiar with OOP

[issue5109] array.array constructor very slow when passed an array object.

2009-02-04 Thread Malcolm Purvis
Malcolm Purvis added the comment: It's true that memcpy won't work when the data type changes, but I would assume (with no evidence to back me up) that the most common case for passing an array into the array's constructor would be when data types are the same. That case would be case to detect

[issue3976] pprint._safe_repr is not general enough in one instance

2009-02-04 Thread Robert Kern
Changes by Robert Kern : -- nosy: +robert.kern ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Checked in r69268, to check strftime() and fopen() ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4947] sys.stdout fails to use default encoding as advertised

2009-02-04 Thread Qiangning Hong
Changes by Qiangning Hong : -- nosy: +hongqn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5139] Add combinatoric counting functions to the math module.

2009-02-04 Thread Mark Dickinson
Mark Dickinson added the comment: > I suggested to include math.npermutations_with_repetitions for > completeness, Ezio, itertools currently has combinations with and without *replacement*, not repetition. I think you're talking about something slightly different (repetitions in the *iterab

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: FYI, Microsoft has responded to my query: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx? FeedbackID=409955 In short: Comments Hello, Thanks for the report. We will probably not be able to address this in our current release, bu

[issue5128] compileall: consider ctime

2009-02-04 Thread Martin von Gagern
Martin von Gagern added the comment: Not being a regular Python programmer myself, I've never even heard of a context manager before, but this latest patch should fit the bill. As for tests, I believe that a few two-second sleeps (as FAT has only two second resolution iirc) should avoid the kin

[issue5150] IDLE to support reindent.py

2009-02-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : Add rstrip() to the Format menu. Python's svn repository no longer accepts files with trailing whitespace and it is often necessary to run reindent.py before submitting. It would be nice to have this as a built-in formatting tool. -- assignee: kb

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore added the comment: Here's an updated patch. Added file: http://bugs.python.org/file12936/generic.patch ___ Python tracker ___ ___ P

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore added the comment: Well spotted! I missed that when I checked. I will add tests and documentation. I agree that generic is better. I only left it as it was because the original intent was simply to move the existing code - but that's not a particularly good reason for keeping a clums