[issue812369] module shutdown procedure based on GC

2012-02-24 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net 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 rep...@bugs.python.org

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

2012-02-24 Thread Stepan Kasal
Stepan Kasal ka...@ucw.cz 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 mar...@v.loewis.de added the comment: I'll look into this shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14100 ___ ___

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

2012-02-24 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I think adding a new formatter for man pages would be generally useful. Assuming someone provides a patch. ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102

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

2012-02-24 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

2012-02-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org 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

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

2012-02-24 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

2012-02-24 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Fixed by revisions 224ebf9d428a and 38828f0c9312 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13909

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

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13909 ___

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

2012-02-24 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org

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

2012-02-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 ezio.melo...@gmail.com 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 ezio.melo...@gmail.com: -- stage: - test needed versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8077 ___

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

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1112955 ___

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

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eli.bendersky stage: needs patch - test needed versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10131

[issue9262] IDLE: Use tabbed shell and edit windows

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +patch stage: needs patch - patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9262 ___

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

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12817 ___ ___

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

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1531415 ___ ___

[issue1116520] Prefix search is filesystem-centric

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1116520 ___ ___

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

2012-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9056 ___

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

2012-02-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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: -

[issue14061] Clean up archiving code in shutil

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2012-02-24 Thread wmg
Changes by wmg wmg...@gmail.com: -- nosy: +wmgaca ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6085 ___ ___ Python-bugs-list mailing list

[issue14087] multiprocessing.Condition.wait_for missing

2012-02-24 Thread sbt
sbt shibt...@gmail.com 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))?

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

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2012-02-24 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: 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:

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

2012-02-24 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- dependencies: +Impossible to include file in sdist that starts with 'build' on Win32 stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14106

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2012-02-24 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5438 ___ ___ Python-bugs-list

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

2012-02-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: 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

[issue14089] Patch to increase fractions lib test coverage

2012-02-24 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file24605/test_fractions.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14089 ___

[issue14089] Patch to increase fractions lib test coverage

2012-02-24 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Added file: http://bugs.python.org/file24630/test_fractions.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14089 ___

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

2012-02-24 Thread Meador Inge
Meador Inge mead...@gmail.com 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,

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

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14081 ___ ___

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

2012-02-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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 rep...@bugs.python.org

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

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14103 ___ ___

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

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___

[issue14108] test_shutil: failures in symlink tests

2012-02-24 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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 br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14108 ___ ___ Python-bugs-list

[issue14108] test_shutil: failures in symlink tests

2012-02-24 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +eric.araujo, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14108 ___ ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Brett Cannon br...@python.org 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

[issue14109] test_lib2to3: failure on Windows 7

2012-02-24 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Are you looking for reviews at this point? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___

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

2012-02-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

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

2012-02-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Yes, though, it's not high priority atm. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14109 ___

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

2012-02-24 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14109 ___ ___

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

2012-02-24 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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 pit...@free.fr 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

[issue14111] IDLE Debugger should handle interrupts

2012-02-24 Thread Larry A. Taylor
New submission from Larry A. Taylor larry.tay...@bankofamerica.com: 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.

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

2012-02-24 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: 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

[issue14097] Improve the introduction page of the tutorial

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14097 ___ ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Brett Cannon br...@python.org 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

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list mailing

[issue14113] Failure in test_strptime on Windows

2012-02-24 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: 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

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-24 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: 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:

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-24 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - ezio.melotti nosy: +ezio.melotti priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14114 ___

[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 mar...@v.loewis.de: 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

[issue14097] Improve the introduction page of the tutorial

2012-02-24 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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

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

2012-02-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14115 ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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%

[issue14108] test_shutil: failures in symlink tests

2012-02-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 eli...@gmail.com 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

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

2012-02-24 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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,

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

2012-02-24 Thread sbt
New submission from sbt shibt...@gmail.com: 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

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-24 Thread Jason Yeo
Jason Yeo jasonye...@gmail.com added the comment: hi, *friendly ping* how's the review for this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14032 ___

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-24 Thread Jason Yeo
Jason Yeo jasonye...@gmail.com added the comment: *friendly ping*, how's the review for this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14026 ___

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

2012-02-24 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4256 ___ ___ Python-bugs-list

[issue14117] Turtledemo: exception and minor glitches.

2012-02-24 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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

[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 tjre...@udel.edu: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14046 ___ ___ Python-bugs-list mailing

[issue14118] _pickle.c structure cleanup

2012-02-24 Thread Merlijn van Deen
New submission from Merlijn van Deen valhall...@gmail.com: 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

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue14118] _pickle.c structure cleanup

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

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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

[issue14118] _pickle.c structure cleanup

2012-02-24 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com 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

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-24 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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 tjre...@udel.edu 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

[issue13557] exec of list comprehension fails on NameError

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue14119] Ability to adjust queue size in Executors

2012-02-24 Thread Nam Nguyen
New submission from Nam Nguyen bits...@gmail.com: 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

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

2012-02-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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:

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

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14074 ___ ___ Python-bugs-list mailing

[issue14076] sqlite3 module ignores placeholers in CREATE TRIGGER code

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14076 ___ ___ Python-bugs-list

[issue14089] Patch to increase fractions lib test coverage

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14089 ___ ___ Python-bugs-list

[issue14119] Ability to adjust queue size in Executors

2012-02-24 Thread Nam Nguyen
Nam Nguyen bits...@gmail.com added the comment: By the way, ProcessPoolExecutor actually sets its queue size to a reasonable number but ThreadPoolExecutor does not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14119

[issue14092] __name__ inconsistently applied in class definition

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14105 ___ ___ Python-bugs-list

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file24632/c011ff345a78.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-24 Thread Brett Cannon
Brett Cannon br...@python.org 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

[issue13557] exec of list comprehension fails on NameError

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Stefan: This fell off my radar, sorry I haven’t reviewed your patch yet. Terry: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13557

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

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue14082] shutil doesn't copy extended attributes

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: copy2() claims to work like cp -p It probably does, for a behavior of “cp -p” that predates extended attributes wink. Do you think the best way is to always copy xattrs, add a new parameter, add a new copy function? -- nosy:

[issue14075] argparse: unused method?

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Following Steven’s message, I will remove the unused function. -- assignee: - eric.araujo nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14075

[issue13974] packaging: test for set_platform()

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW I’m wondering if set_platform is really useful; no code currently uses it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13974 ___

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

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 mer...@netwok.org 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

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

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, will look into it. -- assignee: - eric.araujo components: +Distutils, Distutils2 nosy: +alexis versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14106

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I saw nothing wrong. Give Nick a week to find time to review :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14026 ___

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

2012-02-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue14102

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-24 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14032 ___ ___ Python-bugs-list

  1   2   >