[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Swapnil Talekar
New submission from Swapnil Talekar : In the attached program, the total memory consumption of the process, goes up each time a new subinterpreter imports a bunch of modules. When the subinterpreter is shutdown with Py_EndInterpreter, the memory consumed with import of modules is not returned

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Ezio Melotti
Ezio Melotti added the comment: Is this the same as #222684? -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list maili

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Swapnil Talekar
Swapnil Talekar added the comment: No. This is not the same as #222684? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Swapnil Talekar
Changes by Swapnil Talekar : Added file: http://bugs.python.org/file21579/large_import.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Ezio Melotti
Ezio Melotti added the comment: Indeed, the code looks similar, but #222684 seems to be fixed, and doesn't use PyImport_ImportModule, so maybe the leak is there. -- ___ Python tracker

[issue222684] Memory leak creating sub-interpreters

2011-04-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: For the record, the changeset was 433458651eb4 -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: Le vendredi 08 avril 2011 à 05:34 +, Charles-Francois Natali a écrit : > Charles-Francois Natali added the comment: > > > You may also patch poll_poll(). > > > > Poll accepts negative timeout values, since it's the only way to > specify an infinite wait (

[issue5673] Add timeout option to subprocess.Popen

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: I fixed a bug in _communicate_with_poll(): raise an error if the endtime-time() is negative. If poll() is called with a negative timeout, it blocks until it gets an event. New changeset 3664fc29e867 by Victor Stinner in branch 'default': Issue #11757: subproc

[issue11629] Reference implementation for PEP 397

2011-04-08 Thread Gertjan Klein
Changes by Gertjan Klein : -- nosy: +gklein ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11629] Reference implementation for PEP 397

2011-04-08 Thread anatoly techtonik
anatoly techtonik added the comment: Is it possible to add tl;dr chapter to this document. I am especially interested in extensive logging (to debug problems etc.) -- ___ Python tracker __

[issue5996] abstract class instantiable when subclassing dict

2011-04-08 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-08 Thread Nadeem Vawda
Nadeem Vawda added the comment: I've looked at the code for Python 3, and there isn't anything there that prevents this from happening there, either. So the fix should be applied to 3.2 and 3.3 as well. An alternative approach would be to limit the size of the cache, so that the caller doesn't

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2011-04-08 Thread Panos Christeas
New submission from Panos Christeas : The expat library (in C level) is not xml 1.1 compliant, meaning that it won't accept characters \x01-\x08,\x0b,\x0c and \x0e-\x1f . At the same time, ElementTree (or custom XML creation, such as in xmlrpclib.py:694) allow these characters to pass through. T

[issue11794] Backport new logging docs to 2.7

2011-04-08 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: docs@python -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11571] Turtle window pops under the terminal on OSX

2011-04-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 07 Apr, 2011,at 07:03 PM, Alexander Belopolsky wrote: Alexander Belopolsky added the comment: While you are at it, can you also fix the same issue with "python -m tkinter"?   Sure, I can add a hack to that module as well. Ronald -- Added file

[issue11794] Backport new logging docs to 2.7

2011-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6fb033af9310 by Vinay Sajip in branch '2.7': Issue #11794: Reorganised logging documentation. http://hg.python.org/cpython/rev/6fb033af9310 -- nosy: +python-dev ___ Python tracker

[issue11794] Backport new logging docs to 2.7

2011-04-08 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue3136] [PATCH] logging.config.fileConfig() compulsivly disable all existing loggers

2011-04-08 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-08 Thread R. David Murray
R. David Murray added the comment: Putting in a size limit is reasonable. We did this for fnmatch not that long ago (issue 7846). That was in fact the inspiration for lru_cache. -- nosy: +r.david.murray ___ Python tracker

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: Simplify the test and set the default timeout to 15 min. -- Added file: http://bugs.python.org/file21582/regrtest_timeout-3.patch ___ Python tracker __

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21575/regrtest_timeout-2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread Michael Foord
Michael Foord added the comment: Victor's reasons for wanting per-test timeout rather than per-file seem sound. Need to review the patch to see how much extra complexity it actually introduces (although on a casual reading the new custom result object it introduces is trivially simple, so not

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Nick Coghlan
Nick Coghlan added the comment: As a first guess, I would suspect that this is just badly fragmenting the heap and we aren't freeing up any arenas to pass back to the OS. -- ___ Python tracker ___

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The fact that the "leak" doesn't grow seems to confirm Nick supposition. Close as invalid? -- nosy: +jcea ___ Python tracker ___

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Most builtin modules keep static references to common objects: exceptions, types, &co. These references are currently never freed, but are reused by all sub-interpreters. It the memory usage stays stable, even after many calls to Py_NewInterpreter()/Py

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: With the current implementation of faulthandler.dump_tracebacks_later(), use a timeout per function means create a new thread for each function (the thread is interrupted and exits when the test is done). Quick benchmark with test_io on Linux (lowest "real ti

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2011-04-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please don't add everyone in existence to the nosy list. -- ___ Python tracker ___ ___ Python-bu

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: -benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: I did a similar test on Windows: test_io takes ~19.1 sec with and without timeout. If I look closer, the timeout overhead (call a thread per function call) is 112 µs per function call. The average duration of a test is 48 ms (47,750 µs), so the overhead is 0,

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: -eric.araujo versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11751] Increase distutils.filelist test coverage

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: FYI, I currently only have sporadic Internet access, moreover with SSH blocked, and I want to wait for the merge of distutils2 into the stdlib before I commit some fixes, so don’t worry if this sits for a while. -- __

[issue5309] packaging doesn't parallelize extension module compilation

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- title: setup.py doesn't parallelize extension module compilation -> packaging doesn't parallelize extension module compilation ___ Python tracker ___

[issue11794] Backport new logging docs to 2.7

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: Great stuff! -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I think this is a non-issue. Closing. If you have a testcase proving real leaks in a current release, reopen. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue5996] abstract class instantiable when subclassing dict

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11781] test/test_email directory does not get installed by 'make install'

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11785] email subpackages documentation problems

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: See also http://sphinx.pocoo.org/domains.html#directive-py:currentmodule -- nosy: +eric.araujo ___ Python tracker ___

[issue11785] email subpackages documentation problems

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: > Besides, the Doc/library/email-examples.rst is not a module and it > uses ":mod:`email`: xxx" Not a problem. “:mod:” is not “.. module::”. See above link. -- ___ Python tracker

[issue11787] File handle leak in TarFile lib

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: A try/except/finally construct would probably work. -- nosy: +eric.araujo ___ Python tracker ___ ___ P

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: +1 -- nosy: +eric.araujo versions: +3rd party ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11770] inspect.dir_static

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: Would it respect __dir__? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: Andreas: metaclass.__prepare__ can return any mapping object. See http://docs.python.org/dev/reference/datamodel#customizing-class-creation -- nosy: +eric.araujo ___ Python tracker

[issue11770] inspect.dir_static

2011-04-08 Thread Michael Foord
Michael Foord added the comment: No. It would return all members accessible to getattr_static (which is completely unrelated to what __dir__ may or may not return). Also calling __dir__ would mean code execution, and the point of these functions is to avoid this where possible. -- _

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: I shot too fast, you were right. The mapping returned by __prepare__ is used during class creation, but __dict__ on the instance is a basic dict afterwards (not sure the doc is clear, I tested it in a shell). -- ___

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11797] 2to3 does not correct "reload"

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11797] 2to3 does not correct "reload"

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list maili

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-08 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11700] mailbox.py proxy updates

2011-04-08 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Hrmpf, it seems a '>>> class y(io.RawIOBase):' line has been swallowed in at least Roundup.) So here is the rewritten .yeah-2.diff. It drops the ._trackpos stuff once again due to problems with position tracking in case of failures, i.e. to go that

[issue11770] inspect.dir_static

2011-04-08 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11792] asyncore module print to stdout

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: Some guidance on print vs. warnings vs. logging on http://docs.python.org/dev/howto/logging#when-to-use-logging -- nosy: +eric.araujo ___ Python tracker

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-08 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-08 Thread Nadeem Vawda
Nadeem Vawda added the comment: Patch for 3.3 and 3.2 -- keywords: +patch Added file: http://bugs.python.org/file21584/filecmp-lru-cache-3.3.diff ___ Python tracker ___

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-08 Thread Nadeem Vawda
Nadeem Vawda added the comment: Patch for 2.7. -- Added file: http://bugs.python.org/file21585/filecmp-lru-cache-2.7.diff ___ Python tracker ___

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-08 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-08 Thread Nadeem Vawda
Nadeem Vawda added the comment: Oops, there was a typo in the 2.7 patch ("import _thread" instead of "import thread"). Corrected patch attached. -- Added file: http://bugs.python.org/file21586/filecmp-lru-cache-2.7.diff ___ Python tracker

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2011-04-08 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Check also this: > > http://bugs.python.org/issue11740 You should indicate it as duplicate. -- ___ Python tracker ___ __

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2011-04-08 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I have no idea how I should do this. If you explain to me, how it should be done, I'll be happy to do this from now on :-) -- ___ Python tracker __

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I did a similar test on Windows: test_io takes ~19.1 sec with and > without timeout. You may want to test with test_argparse. -- ___ Python tracker

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-08 Thread Santoso Wijaya
Santoso Wijaya added the comment: I concur. Attaching a refreshed patch (against current 2.7 branch) along with a unittest. -- nosy: +santa4nt Added file: http://bugs.python.org/file21587/issue4877.patch ___ Python tracker

[issue11740] difflib html diff takes extremely long

2011-04-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> dreadful performance in difflib: ndiff and HtmlDiff ___ Python tracker ___

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2011-04-08 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2011-04-08 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Or whether to change it at all. It's hard to imagine that > applications may rely on that aspect of the behavior - they > have to use eval, after all. I would like to see this fixed. When working in interactive session, I find myself adding [:] to str

[issue11388] Implement MutableSequence.clear()

2011-04-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2011-04-08 Thread Eli Bendersky
Eli Bendersky added the comment: Terry, Nick - is it OK to commit a fix for the comments? -- ___ Python tracker ___ ___ Python-bugs-li

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-08 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: If Torsten does not have time for this i'll do that next. I hate this useless Punycode (but for nameprep), so it's exactly the right thing for me to do next in 2011. Unless someone complains. I've not looked at formataddr/parseaddr, so that's a motivatio

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Santoso Wijaya
Santoso Wijaya added the comment: I have a feeling that a successful resolution of issue 1820 will make things simpler for this one, since time.struct_time uses structseq. -- nosy: +santa4nt ___ Python tracker ___

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

2011-04-08 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11466] getpass.getpass doesn't close tty file

2011-04-08 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Future Buddha to Guru.. Future Buddha to Guru.. My code is like a two-wheeled indian Bullet, royal purple. Wouldn't you agree with that? -- ___ Python tracker

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-08 Thread R. David Murray
R. David Murray added the comment: I believe Torsten is interested, but he can of course speak for himself. Just to make sure you are aware: Python has a built in idna codec, so this should be a fairly simple patch. -- ___ Python tracker

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Filip, you can look at the changed Benjamin made. One needs to be OP or have admin privileges to change the headers. Could you reupload your patch to this issue? -- versions: +Python 3.3 -Python 3.2 ___ Python trac

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2011-04-08 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Here it is. -- keywords: +patch Added file: http://bugs.python.org/file21588/11740.patch ___ Python tracker ___

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Jonathan Hartley
Jonathan Hartley added the comment: Is also exhibited by other class variable being used in the 'output' clause of the list comprehension: >>> class C: ... x = 3 ... z = [z*x for z in range(4)] Traceback (most recent call last): File "", line 1, in File "", line 3, in C File "",

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would say yes (if you are sure changes are correct) unless Nick speaks up to say he wants to review first. -- ___ Python tracker ___

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-08 Thread Torsten Becker
Torsten Becker added the comment: I was about to look into this over the weekend, but of course I don't want to steal your fun, Steffen. :) -- ___ Python tracker ___ ___

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: Le vendredi 08 avril 2011 à 17:31 +, Antoine Pitrou a écrit : > Antoine Pitrou added the comment: > > > I did a similar test on Windows: test_io takes ~19.1 sec with and > > without timeout. > > You may want to test with test_argparse. Oh... test_argpars

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2011-04-08 Thread Jon Parise
Changes by Jon Parise : -- nosy: +jon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue11747] unified_diff function product incorrect range information

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: @Tim: was it your intention that difflib track gnu diff? I am on the fence with this issue. Without input from Tim other than the doc, I am tempted to call this a feature request and retitle it "Make unified_diff match gnu diff for [] input". The docs do not

[issue11805] package_data only allows one glob per-package

2011-04-08 Thread Erik Bray
New submission from Erik Bray : In distutils the package_data option can be supplied a list of glob patterns for each package. distutils2 currently only supports one glob per package. This could easily be fixed by simply allowing more than one `package_name = pattern` value in the package_dat

[issue11754] Changed test to check calculated constants in test_string.py

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not understand 'circular'. The change is from 'attribute exists' to 'attribute has correct value'. If any are changed, I would think all should be changed. -- nosy: +terry.reedy ___ Python tracker

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-08 Thread Bryce Verdier
Bryce Verdier added the comment: Modified patch to remove PyErr_SetString() as it doesn't do anything. Patch looks good to me otherwise and ran without issue. -- Added file: http://bugs.python.org/file21589/issue4877.patch ___ Python tracker

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2011-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-08 Thread Santoso Wijaya
Santoso Wijaya added the comment: You mean, PyErr_Clear()? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-08 Thread Bryce Verdier
Bryce Verdier added the comment: Yes I did. Sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-04-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Issue5907 would benefit of this change. Unfortunately, structseq constructors already have keyword arguments; they are equivalent to "def __new__(cls, sequence, dict=NULL)". OTOH these keywords arguments are not documented anywhere. I suggest to change t

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- dependencies: +Enhance Object/structseq.c to match namedtuple and tuple api ___ Python tracker ___ ___

[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: All the types in the types module are, being types, potentially callable to produce instances of that type. But they are in types rather than builtins precisely because it is not expected that they be called directly. They are bound to names in types primaril

[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread anatoly techtonik
anatoly techtonik added the comment: Message is classified as spam. I am not sure if you see it. -- ___ Python tracker ___ ___ Python

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

2011-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also see issue 11698 -- assignee: jackdied -> rhettinger ___ Python tracker ___ ___ Python-bugs-l

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also see issue11698 -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Pyth

[issue11782] email.generator.Generator.flatten() fails

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The error message suggests that somehow a str string has gotten mixed in with the bytes. Something like '\n' or ' '? Steffen, if you want to help track this down: 1. What is a minimal msgdata that gives the same error; post it. 2. Add 'print(payload)' before l

[issue3831] Multiprocessing: Expose underlying pipe in queues

2011-04-08 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3831] Multiprocessing: Expose underlying pipe in queues

2011-04-08 Thread Matt Joiner
Matt Joiner added the comment: I look forward to this, or something similar. Inspiration can be taken from Golangs's select behaviour on channels. select { case i1 = <-c1: print("received ", i1, " from c1\n") case c2 <- i2: print("sent ", i2, " to c2\n") default: print

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Devs are aware that there is an exception to the general rule for the 'for' clause. There is a technical reason why the exception is possible, though I have forgotten it. Since you already know that changing the general behavior has been rejected, are you as

  1   2   >