[issue812369] module shutdown procedure based on GC

2012-02-24 Thread Armin Rigo
Armin Rigo added the comment: Obviously we run atexit code too. There is no point in having atexit if it's not guaranteed to run in a normal shutdown. -- ___ Python tracker _

[issue14099] ZipFile.open() should not reopen the underlying file

2012-02-24 Thread Stepan Kasal
Stepan Kasal added the comment: Attached please find a second iteration of the fix. This time the signature of ZipExtFile is kept backward compatible, with one new parameter added. -- Added file: http://bugs.python.org/file24624/Proposed-fix-of-issue14099-second.patch ___

[issue14100] Add a missing info to PEP 393 + link from whatsnew 3.3

2012-02-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'll look into this shortly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14102] argparse: add ability to create a man page

2012-02-24 Thread Steven Bethard
Steven Bethard added the comment: I think adding a new formatter for man pages would be generally useful. Assuming someone provides a patch. ;-) -- ___ Python tracker ___ _

[issue14103] argparse: add ability to create a bash_completion script

2012-02-24 Thread Steven Bethard
Steven Bethard added the comment: Yeah, the same issues have been discussed in Issue 4256. My feeling so far is that if there isn't "one true format" that argparse can produce and be useful to a wide variety of shells, then it's probably not functionality that belongs in Python core, and inst

[issue13706] non-ascii fill characters no longer work in formatting

2012-02-24 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > Your comment is incorrect, it was already failing before my commit ;-) > Example at changeset 548a023c8230: Ah, sorry about that. I was lazy and tested against 585d3664da89 (which is a couple of weeks old). That version didn't crash but

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2012-02-24 Thread Steven Bethard
Steven Bethard added the comment: So it seems like what bash needs and what zsh needs are pretty different. My feeling so far is that if there isn't "one true format" that argparse can produce and be useful to a wide variety of shells, then it's probably not functionality that belongs in Pyth

[issue13909] Ordering of free variables in dis is dependent on dict ordering.

2012-02-24 Thread Mark Shannon
Mark Shannon added the comment: Fixed by revisions 224ebf9d428a and 38828f0c9312 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue13909] Ordering of free variables in dis is dependent on dict ordering.

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: test needed -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue14081] Allow "maxsplit" argument to str.split() to be passed as a keyword argument

2012-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: New patch that changes .rsplit() too and updates docs and docstrings. -- Added file: http://bugs.python.org/file24625/issue14081-2.diff ___ Python tracker __

[issue13973] urllib.parse is imported twice in xmlrpc.client

2012-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3e8f8d10dce by Ezio Melotti in branch 'default': #13973: move a couple of imports at module level. Patch by Tshepang Lekhonkhobe. http://hg.python.org/cpython/rev/a3e8f8d10dce -- nosy: +python-dev ___

[issue13973] urllib.parse is imported twice in xmlrpc.client

2012-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch. -- assignee: -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected type: -> enhancement ___ Python tracker

[issue8077] cgi handling of POSTed files is broken

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> test needed versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list maili

[issue1112955] move_file()'s return value when dry_run=1 unclear

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eli.bendersky stage: needs patch -> test needed versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ _

[issue9262] IDLE: Use tabbed shell and edit windows

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +patch stage: needs patch -> patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ _

[issue12817] test_multiprocessing: io.BytesIO() requires bytearray buffers

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1116520] Prefix search is filesystem-centric

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12817] test_multiprocessing: io.BytesIO() requires bytearray buffers

2012-02-24 Thread Stefan Krah
Stefan Krah added the comment: The current interpretation in the PEP-3118 repo is that a request without PyBUF_FORMAT means "implicit cast to unsigned bytes". This makes the behavior of PyObject_AsWriteBuffer() correct, so I'm closing this. -- resolution: -> invalid stage: patch revie

[issue14061] Clean up archiving code in shutil

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda added the comment: I don't think there's any harm in testing that the exception message for a .bz2 file contains the string "unknown archive format". It's unlikely that we'll want to completely change the error message in future, and if we do, it will be pretty easy and obvious to f

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2012-02-24 Thread wmg
Changes by wmg : -- nosy: +wmgaca ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue14087] multiprocessing.Condition.wait_for missing

2012-02-24 Thread sbt
sbt added the comment: > Shouldn't the `for` loop be outside the outer `with` block? Yes. > In Lib/multiprocessing/managers.py: > Is there a good reason why the wait_for() proxy method can't simply be > implemented as: > return self._callmethod('wait_for', (predicate, timeout))? > > (There ma

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda added the comment: There were bugs in two of the updated tests: - test_glob_to_re() was doing two levels of escaping (r'\' -> r'') for its expected output when it should only do one (r'\' -> r'\\'). - test_process_template() was not converting some of its expected results

[issue14106] Distutils manifest: recursive-(include|exclude) matches suffix instead of full filename

2012-02-24 Thread Nadeem Vawda
New submission from Nadeem Vawda : As I understand it, a MANIFEST.in directive: recursive-include foo bar.* is meant to match files under foo for with names beginning with "bar.". However, the actual regex that is generated for this line is: r'^foo/.*bar\.[^/]*\Z(?ms)' which matches a

[issue14106] Distutils manifest: recursive-(include|exclude) matches suffix instead of full filename

2012-02-24 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- dependencies: +Impossible to include file in sdist that starts with 'build' on Win32 stage: needs patch -> patch review ___ Python tracker ___ _

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2012-02-24 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-02-24 Thread Stefan Krah
Stefan Krah added the comment: Thanks, Nick. I'll try to get it done this weekend. I've uploaded Misc/NEWS and Doc/whatsnew/3.3.rst (my apologies to Antoine for plagiarizing the first sentence, I found it hard to come up with a better version). I wasn't sure whether to put the "whatsnew" ent

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Nadeem Vawda
New submission from Nadeem Vawda : On the debian bigmem buildbot, test_bigmem hangs until it gets killed by a timeout: http://www.python.org/dev/buildbot/all/builders/AMD64%20debian%20bigmem%203.x/builds/134/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/builders/AMD64%2

[issue14089] Patch to increase fractions lib test coverage

2012-02-24 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file24605/test_fractions.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14089] Patch to increase fractions lib test coverage

2012-02-24 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Added file: http://bugs.python.org/file24630/test_fractions.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-24 Thread Meador Inge
Meador Inge added the comment: The change in error handling makes this a bit harder to review, but it otherwise looks OK if this is the intended behavior. I am not sure that it is. The original version: 1. If __qualname__ was present in the original dictionary, then it was deleted.

[issue14081] Allow "maxsplit" argument to str.split() to be passed as a keyword argument

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: PEP section makes sense - I plan to mark PEP 3118 as Final once you commit this (or you can do that yourself, for that matter). -- ___ Python tracker __

[issue14103] argparse: add ability to create a bash_completion script

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14102] argparse: add ability to create a man page

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14108] test_shutil: failures in symlink tests

2012-02-24 Thread Stefan Krah
New submission from Stefan Krah : These two tests fail on Windows 7: == FAIL: test_copymode_follow_symlinks (test.test_shutil.TestShutil) ---

[issue14108] test_shutil: failures in symlink tests

2012-02-24 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14108] test_shutil: failures in symlink tests

2012-02-24 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +eric.araujo, tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Brett Cannon added the comment: OK, I have now done as much C code as I'm going to do for the __import__() function. It has gotten bootstrapped importlib within 10% of normal_startup against default. That leaves (possibly) rewriting BuiltinImporter in C and then just good old fashioned optim

[issue14109] test_lib2to3: failure on Windows 7

2012-02-24 Thread Stefan Krah
New submission from Stefan Krah : This failure occurs on the Windows 7 buildbot: [302/364] test_lib2to3 --- D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\lib2to3\tests\test_main.py 2012-02-13 21:57:29.273004000 -0500 +++ @ 2012-02-24 11:59:54.408966500 -0500 @@ -42,7 +42,7

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Are you looking for reviews at this point? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-l

[issue14109] test_lib2to3: output that looks like a failure on Windows 7

2012-02-24 Thread Stefan Krah
Stefan Krah added the comment: Oops, this is just undesirable output. Is there any chance to fix this? -- title: test_lib2to3: failure on Windows 7 -> test_lib2to3: output that looks like a failure on Windows 7 ___ Python tracker

[issue14109] test_lib2to3: output that looks like a failure on Windows 7

2012-02-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, though, it's not high priority atm. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14109] test_lib2to3: output that looks like a failure on Windows 7

2012-02-24 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14110] FreeBSD: test_os fails if user is in the wheel group

2012-02-24 Thread Stefan Krah
New submission from Stefan Krah : On FreeBSD, if the user is a member of the group 'wheel', these tests fail: == FAIL: test_setegid (test.test_os.PosixUidGidTests) ---

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, compilation fails here: Python/import.c: In function ‘PyImport_ImportModuleLevelObject’: Python/import.c:2956:9: erreur: ‘for’ loop initial declarations are only allowed in C99 mode Python/import.c:2956:9: note: use option -std=c99 or -std=gnu99

[issue14111] IDLE Debugger should handle interrupts

2012-02-24 Thread Larry A. Taylor
New submission from Larry A. Taylor : The attached script runs a long processing loop. Start it in IDLE. Open the script and run it. Press control-C. Result: message, KeyboardInterrupt with traceback message. In shell window, turn on Debugger. Run the script. Press control-C. Result: Restrat

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-24 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : Relevant line: http://hg.python.org/cpython/file/e2eccc906354/Doc/tutorial/introduction.rst#l487 When the concept is introduced, it appears like there's an assumption that the reader would know what it means. I'm curious if it's that common a term tha

[issue14097] Improve the "introduction" page of the tutorial

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Brett Cannon added the comment: Fixed the 'for' loop variable declaration. Surprised clang didn't warn me about that. As for reviews, I'm totally happy to get them, but I also don't know if I have hit the performance point well enough for people to allow me to merge the code into default. I

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue14113] Failure in test_strptime on Windows

2012-02-24 Thread Nadeem Vawda
New submission from Nadeem Vawda : Recent failures on one of the Windows XP buildbots: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/6049/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/6051/steps/test/logs/stdio FAIL:

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-24 Thread Martin v . Löwis
New submission from Martin v. Löwis : The 2.7.3rc1 chm give the following error when opened Line: 1 Char: 1 The Value of the property "$" is null or undefined, not a function (translated from German) Code: 0 URL: mk:@MSITStore:C:\Users\martin\27\python\Doc\build\htmlhelp\python273rc1.chm::/_st

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-24 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> ezio.melotti nosy: +ezio.melotti priority: normal -> release blocker ___ Python tracker ___ ___

[issue14115] 2.7.3rc hangs on test_asynchat on 32-bit Windows

2012-02-24 Thread Martin v . Löwis
New submission from Martin v. Löwis : As the title says: test_asynchat appears to hang on Windows. -- messages: 154155 nosy: loewis priority: normal severity: normal status: open title: 2.7.3rc hangs on test_asynchat on 32-bit Windows ___ Python track

[issue14097] Improve the "introduction" page of the tutorial

2012-02-24 Thread Eli Bendersky
Eli Bendersky added the comment: Ezio, your fix for 8 is definitely good. Space makes it cleaner, as well as compliant to PEP 8, which explicitly recommends to surround operators with spaces. Note, however, that this should be applied in other places as well, not only the complex number samp

[issue14115] 2.7.3rc hangs on test_asynchat on 32-bit Windows

2012-02-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for reviews, I'm totally happy to get them, but I also don't know > if I have hit the performance point well enough for people to allow me > to merge the code into default. I guess the real question is whether > *you're* happy with the 10% slowdown in raw s

[issue14108] test_shutil: failures in symlink tests

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's a duplicate of issue13837. -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> test_shutil fails with symlinks enabled under Windows ___ Python tracker

[issue14097] Improve the "introduction" page of the tutorial

2012-02-24 Thread Eli Bendersky
Eli Bendersky added the comment: Comments on some of the suggestions: 1) Agreed 2) Can be combined with (3), I think. Just show the number example with the explanatory comments. They speak for themselves. No need for the SPAM and STRING assignments. 5) Yep. Can be replaced by "A value can be

[issue13706] non-ascii fill characters no longer work in formatting

2012-02-24 Thread STINNER Victor
STINNER Victor added the comment: > By the way, Python 3.2 fails also to handle > non-ASCII thousands separator or non-ASCII > decimal point: (...) Hum, it is not trivial to redo the work on Python 3.2. I prefer to leave the code unchanged to not introduce a regression, and I wait until a Pyth

[issue14116] Lock.__enter__() method returns True instead of self

2012-02-24 Thread sbt
New submission from sbt : The __enter__() methods of Lock, RLock, Semaphore and Condition in threading (and multiprocessing) all return True. This seems to contradict the documentation for the context protocol which says contextmanager.__enter__() Enter the runtime context and return e

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-24 Thread Jason Yeo
Jason Yeo added the comment: hi, *friendly ping* how's the review for this patch? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-24 Thread Jason Yeo
Jason Yeo added the comment: *friendly ping*, how's the review for this patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue14117] Turtledemo: exception and minor glitches.

2012-02-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : Win7, 3.2.2, python -m turtledemo in Command Prompt Window After running clock example, hitting Stop results in following: Clock face, including hands, is erased. Day and date are left (intentional?), and the following appears back in command prompt window.

[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14118] _pickle.c structure cleanup

2012-02-24 Thread Merlijn van Deen
New submission from Merlijn van Deen : While working on #6784, I've looked at _pickle.c and found it quite... daunting: 6500 lines and 185kB. I have been working on a bit of cleanup, and I'd like some comments on this. I'm working on adapting _pickle.c into the following structure: _pickle.c

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4afcb25988c4 by Victor Stinner in branch 'default': Issue #14107: fix bigmem tests on str.capitalize(), str.swapcase() and http://hg.python.org/cpython/rev/4afcb25988c4 -- nosy: +python-dev ___ Python tr

[issue14118] _pickle.c structure cleanup

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think this is going overboard. _pickle.c is long but it defines two classes which are closely related to each other. I don't really get the point of exploding it into a myriad of 30-line files, especially if it means I now have to keep all these tiny files

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread STINNER Victor
STINNER Victor added the comment: I ran test_bigmem on my computer. The test pass but it is really slow. $ ./python -m test -v -M 8G test_bigmem (... Ran 164 tests in 3228.227s OK (skipped=44) 1 test OK. One hour, whereas 44 tests are skipped. Skipped tests are the tests using the m

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda added the comment: > I ran test_bigmem on my computer. The test pass but it is really slow. Is this with or without the fix you just pushed? How much RAM does your system have? I tried running with "-M 4.5G" on my 8GB machine earlier today, and it ate through all of my RAM plus 4GB

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread STINNER Victor
STINNER Victor added the comment: >> I ran test_bigmem on my computer. The test pass but it is really slow. > > Is this with or without the fix you just pushed? How much RAM does your > system have? I tried running with "-M 4.5G" on my 8GB machine earlier > today, and it ate through all of my RA

[issue14118] _pickle.c structure cleanup

2012-02-24 Thread Merlijn van Deen
Merlijn van Deen added the comment: That makes sense. The goal was not so much cleaning up the module per se; rather, it was a result of trying to understand the general structure of _pickler.c specifically. However, is there an intermediate level of 'modularization' you would propose? The i

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda added the comment: > My PC has 12 GB of RAM and no swap. I ran the test after my commit. That explains. I ran it earlier (obviously), so it included a bunch of those more-demanding tests, which must be where the OOM killer hit it. -- __

[issue14049] execfile() fails on files that use global variables inside functions

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Searching on 'exec NameError' shows that this issue is a duplicate of (behavior issue) #1167300 which contained an essentially identical example" >>> exec """\ ... x = 3 ... def f(): ... print x ... f() ... """ in {}, {} #1167300 was closed as a duplicate

[issue13557] exec of list comprehension fails on NameError

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Issues like this, about exec, have come up multiple times. I just closed #14049 as a duplicate of this, and listed there some other issues. So I think that the doc for exec (and execfile in 2.7) could be better still. I would like to see something like the fo

[issue14119] Ability to adjust queue size in Executors

2012-02-24 Thread Nam Nguyen
New submission from Nam Nguyen : I am running into a memory consumption issue with concurrent.futures module. Its Executors do not have a public API to adjust their queue size. and the queues are created unbounded initially. It would be helpful to have some public method or a parameter at con

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset b83ae75beaca by Victor Stinner in branch 'default': Close #14095: type.__new__() doesn't remove __qualname__ key from the class http://hg.python.org/cpython/rev/b83ae75beaca -- nosy: +python-dev resolution: -> fixed stage: patch review ->

[issue14074] argparse does not allow nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14076] sqlite3 module ignores placeholers in CREATE TRIGGER code

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14089] Patch to increase fractions lib test coverage

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14119] Ability to adjust queue size in Executors

2012-02-24 Thread Nam Nguyen
Nam Nguyen added the comment: By the way, ProcessPoolExecutor actually sets its queue size to a reasonable number but ThreadPoolExecutor does not. -- ___ Python tracker ___ ___

[issue14092] __name__ inconsistently applied in class definition

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not a bug report, as Python works as documented. Double underscore names are defined as *reserved* for the interpreter, with the ones actually in use having defined meanings. type.__new__ sets several internally used attributes on new classes. The at

[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Changes by Brett Cannon : Added file: http://bugs.python.org/file24632/c011ff345a78.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Brett Cannon added the comment: Then if you want to give it a review that would be great! I still need to solve the test_pydoc failure (either with Brian's patch to add a name attribute to ImportError or implement importlib.find_module()). Otherwise all other failures at the moment are becaus

[issue13557] exec of list comprehension fails on NameError

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: Stefan: This fell off my radar, sorry I haven’t reviewed your patch yet. Terry: +1 -- ___ Python tracker ___

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: urlparse doesn’t actually implement generic parsing rules according to the most recent RFCs; it has hard-coded registries of supported schemes. tel is not currently supported. That said, it’s strange that the parsing differs in your two examples. -- c

[issue14082] shutil doesn't copy extended attributes

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: > copy2() claims to work like "cp -p" It probably does, for a behavior of “cp -p” that predates extended attributes . Do you think the best way is to always copy xattrs, add a new parameter, add a new copy function? -- nosy: +eric.araujo title: shutil d

[issue14075] argparse: unused method?

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: Following Steven’s message, I will remove the unused function. -- assignee: -> eric.araujo nosy: +eric.araujo ___ Python tracker ___

[issue13974] packaging: test for set_platform()

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: BTW I’m wondering if set_platform is really useful; no code currently uses it. -- ___ Python tracker ___ _

[issue14103] argparse: add ability to create a bash completion script

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: Closing as rejected for now. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed title: argparse: add ability to create a bash_completion script -> argparse: add ability to create a bash completion script

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: > zsh completion is much more powerful. I beg to differ :) bash completion can also list more that files, for example only .bz2 files when I complete the bunzip2 command, or Mercurial branch and tag names when I complete hg update, etc. It all depends on the co

[issue14106] Distutils manifest: recursive-(include|exclude) matches suffix instead of full filename

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: Thanks, will look into it. -- assignee: -> eric.araujo components: +Distutils, Distutils2 nosy: +alexis versions: +3rd party ___ Python tracker _

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: I saw nothing wrong. Give Nick a week to find time to review :) -- ___ Python tracker ___ ___ Python-

[issue14102] argparse: add ability to create a man page

2012-02-24 Thread Éric Araujo
Éric Araujo added the comment: Alright :) I’ve contacted the author of the blog article to ask him if we can reuse his code. -- stage: -> needs patch ___ Python tracker ___ _

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

  1   2   >