[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com 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

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Here's an updated patch. Added file: http://bugs.python.org/file12936/generic.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5135 ___

[issue5150] IDLE to support reindent.py

2009-02-04 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: 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

[issue5128] compileall: consider ctime

2009-02-04 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net 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

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

2009-02-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com 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

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

2009-02-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-02-04 Thread Qiangning Hong
Changes by Qiangning Hong hon...@gmail.com: -- nosy: +hongqn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4947 ___ ___ Python-bugs-list mailing

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

2009-02-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Checked in r69268, to check strftime() and fopen() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___

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

2009-02-04 Thread Malcolm Purvis
Malcolm Purvis malc...@purvis.id.au 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

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2009-02-04 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - marketdickinson priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3166 ___

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

2009-02-04 Thread Akira Kitada
Akira Kitada akit...@gmail.com 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

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com 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

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

2009-02-04 Thread pmoody
pmoody pyt...@hda3.com 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

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

2009-02-04 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com 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,

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith
Eric Smith e...@trueblade.com 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

[issue1019715] distutils ignores configure's --includedir

2009-02-04 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1019715 ___

[issue1019715] distutils ignores configure's --includedir

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1019715 ___ ___ Python-bugs-list

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

2009-02-04 Thread Nicholas Patterson
New submission from Nicholas Patterson nicholas_patter...@agilent.com: 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

[issue808129] Change --changelog to accept files

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- type: - feature request versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue808129

[issue809163] Can't add files with spaces

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- type: - behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue809163 ___

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

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- nosy: +tarek type: - feature request versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828336

[issue901727] extra_path kwarg to setup() undocumented

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- assignee: - georg.brandl components: +Documentation nosy: +georg.brandl, tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org

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

2009-02-04 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828336 ___ ___ Python-bugs-list

[issue4577] distutils: -3 warnings (apply)

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- nosy: +tarek type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4577 ___ ___

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

2009-02-04 Thread Robert Kern
Changes by Robert Kern robert.k...@gmail.com: -- nosy: +robert.kern ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3976 ___ ___ Python-bugs-list

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

2009-02-04 Thread Guido van Rossum
Guido van Rossum gu...@python.org 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 rep...@bugs.python.org

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

2009-02-04 Thread David Moss
Changes by David Moss drk...@gmail.com: -- nosy: -drkjam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3959 ___ ___ Python-bugs-list mailing list

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

2009-02-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@divmod.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3959 ___ ___ Python-bugs-list

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

2009-02-04 Thread Yannick Gingras
Yannick Gingras yging...@ygingras.net 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-

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

2009-02-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-02-04 Thread Duncan McGreggor
Duncan McGreggor duncan.mcgreg...@gmail.com 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

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Wed, Feb 4, 2009 at 05:56, Eric Smith rep...@bugs.python.org wrote: Eric Smith e...@trueblade.com 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

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: ... as a named tuple works for me. I'll go with that. Thanks! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285 ___

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

2009-02-04 Thread Guido van Rossum
Guido van Rossum gu...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue3959

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

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue5152] Add a JSON-RPC module

2009-02-04 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: 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

[issue4124] Patch for adding default to itemgetter and attrgetter

2009-02-04 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4124 ___ ___

[issue5153] Extra ) in optparse sample

2009-02-04 Thread Adam Vandenberg
New submission from Adam Vandenberg fla...@gmail.com: 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

[issue3783] dbm.sqlite proof of concept

2009-02-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de 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

[issue5152] Add a JSON-RPC module

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2009-02-04 Thread Skip Montanaro
Skip Montanaro s...@pobox.com 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

[issue2527] Pass a namespace to timeit

2009-02-04 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: - normal versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527 ___

[issue3783] dbm.sqlite proof of concept

2009-02-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@divmod.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783 ___ ___ Python-bugs-list

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

2009-02-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

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

2009-02-04 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de 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 ___

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

2009-02-04 Thread Nicholas Patterson
Nicholas Patterson nicholas_patter...@agilent.com 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 rep...@bugs.python.org

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

2009-02-04 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Could you try to do a test with the patch from issue1735? It is rather trivial to apply. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5151 ___

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

2009-02-04 Thread Nicholas Patterson
Nicholas Patterson nicholas_patter...@agilent.com 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

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

2009-02-04 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Never mind! Thank you anyway for your report. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5151

[issue4753] Faster opcode dispatch on gcc

2009-02-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar 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 rep...@bugs.python.org

[issue5015] The Py_SetPythonHome C API function is undocumented

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5015 ___ ___

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

2009-02-04 Thread Duncan McGreggor
Duncan McGreggor duncan.mcgreg...@gmail.com 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.

[issue1079] decode_header does not follow RFC 2047

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1079 ___ ___

[issue5141] C API for appending to arrays

2009-02-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Arrays already support the buffer interface -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5141 ___

[issue5125] Strange locale problem with Python 3

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5125 ___ ___

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Christian Heimes
Christian Heimes li...@cheimes.de 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 rep...@bugs.python.org

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

2009-02-04 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info 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

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

2009-02-04 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Removed file: http://bugs.python.org/file11665/python-trunk-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

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

2009-02-04 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Removed file: http://bugs.python.org/file12272/python-trunk-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Eric Smith e...@trueblade.com 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

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

2009-02-04 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info 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

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: In what specific way is poll() broken? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
Ben Bangert b...@groovie.org 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 mar...@v.loewis.de 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

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com 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

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
Ben Bangert b...@groovie.org 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

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

2009-02-04 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- nosy: +tarek type: - behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1520877

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

2009-02-04 Thread Akira Kitada
Akira Kitada akit...@gmail.com 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 rep...@bugs.python.org

[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2009-02-04 Thread Akira Kitada
Akira Kitada akit...@gmail.com 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 rep...@bugs.python.org

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

2009-02-04 Thread Sam
Sam samsli...@gmail.com 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

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

2009-02-04 Thread And Clover
And Clover a...@doxdesk.com 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 +

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

2009-02-04 Thread Beau Butler
New submission from Beau Butler beau.but...@gmail.com: (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

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

2009-02-04 Thread Beau Butler
Changes by Beau Butler beau.but...@gmail.com: -- 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 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 beau.but...@gmail.com: -- 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())

[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 beau.but...@gmail.com added the comment: Also reproduced in Python3.0 on OSX 10.5 -- versions: +Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5155 ___

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

2009-02-04 Thread Skip Montanaro
Skip Montanaro s...@pobox.com 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 rep...@bugs.python.org

[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 benja...@python.org: -- assignee: - jnoller nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5155 ___

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Ryan Freckleton
Ryan Freckleton ryan.freckle...@gmail.com 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

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

2009-02-04 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5148 ___

[issue1757126] [PATCH] Fix ptcp154 encoding cyrillic_asian alias

2009-02-04 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@users.sourceforge.net: -- title: Fix ptcp154 encoding cyrillic_asian alias - [PATCH] Fix ptcp154 encoding cyrillic_asian alias ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1757126