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

2011-04-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Nevermind about #6040 - I just used the same technique to provide a workaround and then remembered I've seen this recipe on StackOverflow. To me types is the right place, because that's exactly where are you sent from the docs of new

[issue6040] bdist_msi does not deal with pre-release version

2011-04-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: What for? IIUC, it won't be fixed in distutils anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6040 ___

[issue11787] File handle leak in TarFile lib

2011-04-09 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11787 ___ ___

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

2011-04-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: When we do document types, their constructors and methods should also be documented. This is a valid request. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue11806] Missing 2 hyphens in the docs

2011-04-09 Thread Boštjan Mejak
New submission from Boštjan Mejak bostjan.me...@gmail.com: Please see http://docs.python.org/py3k/library/argparse.html#module-argparse and read the first sentence which goes... The argparse module makes it easy to write user friendly command line interfaces. Please fix this to... The

[issue11796] Comprehensions in a class definition mostly cannot access class variable

2011-04-09 Thread Menno Smits
Menno Smits me...@freshfoo.com added the comment: Thanks to everyone for the explanations. I was hoping for behaviour along the lines of Python 2 (certainly not artificially blocking more cases in the name of consistency) but it doesn't look like that's going to happen. I think this is one

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-04-09 Thread Filip Gruszczyński
New submission from Filip Gruszczyński grusz...@gmail.com: In argparse documentation parametres of add_subparsers are not listed. And yet there are some really useful parametres like parser_class. It would be useful, it they were described there well and one wouldn't have to look into the code

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-04-09 Thread Filip Gruszczyński
Changes by Filip Gruszczyński grusz...@gmail.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11807 ___ ___ Python-bugs-list

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

2011-04-09 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: +1 for clarifying the comments. Adding comments for the apparently unused fields (as per my last tracker comment) would be good, too. -- ___ Python tracker rep...@bugs.python.org

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, Apr 08, 2011 at 09:03:51PM +, Torsten Becker wrote: I was about to look into this over the weekend, but of course I don't want to steal your fun, Steffen. :) Toll, toll, toll!! Still cherry blossom, thanks to the

[issue11770] inspect.dir_static

2011-04-09 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Thanks for the patch Andreas. On a quick read through it looks good. I'll do a proper review shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11770

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

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, Apr 08, 2011 at 11:39:36PM +, Terry J. Reedy wrote: 1. What is a minimal msgdata that gives the same error; post it. Stepping a bit.. Remove 'Content-Type' header field and this does not crash. Thus the real

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Ping! Note that whatever reason caused jesstess, to name a few, to drop that loop (and the continue), Charles-Francois posted a correctly working patch! I have no idea why such a severe bug could sleep in code which is executed for

[issue11700] mailbox.py proxy updates

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: .. So here is the rewritten .yeah-2.diff. .. I added more tests (i'm absolutely convinced that the tests i've found in test_mailbox.py really find all the cutting edges ;). On my box this is clean. Haha, now this is *very*

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

2011-04-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file21585/filecmp-lru-cache-2.7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802 ___

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

2011-04-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Why use an ordered dict instead of functools.lru_cache? -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802 ___

[issue6040] bdist_msi does not deal with pre-release version

2011-04-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Well, this is the bug tracker for the stdlib. We have first to define clearly what the bug is, then find how to fix it in packaging (the name of distutils2 merged into 3.3), then decide whether to backport it to distutils. Half-tested recipes

[issue11805] package_data only allows one glob per-package

2011-04-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: What’s the syntax described in the docs? package_data = mypackage = templates/*.html static/css/*.css or package_data = mypackage = templates/*.html mypackage = static/css/*.css ? On a related subject, I think the new

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset f343ac51 by Victor Stinner in branch '3.1': Issue #11650: PyOS_StdioReadline() retries fgets() if it was interrupted http://hg.python.org/cpython/rev/f343ac51 New changeset fc2f251e660a by Victor Stinner in branch '3.2':

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7febd5ef7619 by Victor Stinner in branch '2.7': (Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it was http://hg.python.org/cpython/rev/7febd5ef7619 -- ___ Python

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Merci, STINNER Victor! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I emulated Mac OS X behaviour on Linux by hacking my_fgets(): do { p=NULL; errno = EINTR; }, only after the first call to fgets(). Without the patch, Python does exit immediatly. With the patch, Python doesn't exit. I applied

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: Victor, I have neither OS X nor Linux available right now, but if I remember correctly the same happens on both systems when programs call input() (but not from the REPL). See also my previous message with python -c tests and my second remark.

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

2011-04-09 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Because the lru_cache decorator doesn't provide any way to invalidate stale cache entries. Perhaps I should factor out the duplicated code into a separate class that can then also be exposed to users of the stdlib. But that would only apply

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Hello Mac OS X gurus, if i else DEBUG='--with-pydebug' echo Using --with-pydebug fi ./configure --prefix=$HOME/usr/opt/$PREFIX $DEBUG make -j2 all i get this /usr/bin/gcc -c -fno-strict-aliasing -g -O0 -Wall

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: P.S.: this does not happen if i use ./configure --prefix=$HOME/usr/opt/$PREFIX $DEBUG MACOSX_DEPLOYMENT_TARGET=10.6 -- ___ Python tracker rep...@bugs.python.org

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: The problem goes away if i comment out all the Mercurial queries in Makefile: HGVERSION= #hg id -i $(srcdir) HGTAG= #hg id -t $(srcdir) HGBRANCH= #hg id -b $(srcdir) --

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

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I question whether this should be backported. Please discuss with the RM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the report. This is another case of the problem described in Issue9516, in particular msg130666 except now it is hg invoking another Python during the build process. The sysconfig part of the patch for Issue9516 applied to the build

[issue6040] bdist_msi does not deal with pre-release version

2011-04-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Feel free to copy this report for a clear user story - http://twistedmatrix.com/trac/ticket/5024 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6040

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

2011-04-09 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I question whether this should be backported. Please discuss with the RM. Will do. Are you referring specifically to 2.7, or to 3.1 and 3.2 as well? -- ___ Python tracker

[issue11779] test_mmap timeout (30 min) on AMD64 Snow Leopard 3.x buildbot

2011-04-09 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: OS X filesystem does not support seeking ahead to create sparse files. The test is supposed to skip the LargeMmapTests on OS X and Windows with (line 679 of test_mmap.py): if sys.platform[:3] == 'win' or sys.platform == 'darwin':

[issue11707] Create C version of functools.cmp_to_key()

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Georg, would you opine on whether this should to into 3.2.1? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11707

[issue11779] test_mmap timeout (30 min) on AMD64 Snow Leopard 3.x buildbot

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, buildbots run tests with -uall, so the largefile resource gets enabled. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11779

[issue11805] package_data only allows one glob per-package

2011-04-09 Thread Erik Bray
Erik Bray erik.m.b...@gmail.com added the comment: As far as I've been able to tell there is no proposed syntax in the docs specifically for package_data. The docs for the resources option seems to suggest separating globs with spaces, which would be fine by me (wouldn't allow paths that

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

2011-04-09 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Oh, I didn't know. In this case, is my commit 3664fc29e867 correct? I think that it is, because without the patch, subprocess may call poll() with a negative timeout, and so it is no more a timeout at all. Yes, it looks correct.

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Apr 09, 2011 at 02:18:01PM +, STINNER Victor wrote: I noticied a strange behaviour: So forget all this girlie s...! Here is a real man's patch!! You'll notice mysterious function calls with a Py prefix - they're

[issue11719] test_msilib skip unexpected on non-Windows platforms

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d4730f14b6c0 by Ross Lagerwall in branch '3.1': Issue #11719: Fix message about unexpected test_msilib skip. http://hg.python.org/cpython/rev/d4730f14b6c0 New changeset 8b146103d29e by Ross Lagerwall in branch '2.7': Issue #11719:

[issue11719] test_msilib skip unexpected on non-Windows platforms

2011-04-09 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Thanks for the patch. -- assignee: - rosslagerwall nosy: +rosslagerwall resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 2.7, Python 3.1, Python 3.2

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

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Apr 09, 2011 at 11:56:16AM +, Steffen Daode Nurpmeso wrote: I'll try to instrument the path a bit .. Sorry, no time today. All the stuff next week. Nice weekend. -- ___

[issue11809] Rietveld Code Review Tool can't handle well-known controls

2011-04-09 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: The file http://bugs.python.org/file21593/11650.termios.diff cannot be parsed, i guess it's due to ^D, ^Z, ^\ and ^C being embedded as ASCII control characters. Maybe this is a feature, though. Then someone should close this.

[issue11809] Rietveld Code Review Tool can't handle well-known controls

2011-04-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This should go to the meta-tracker, http://psf.upfronthosting.co.za/roundup/meta/. -- nosy: +georg.brandl resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11707] Create C version of functools.cmp_to_key()

2011-04-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I would have to say that this looks hardly a trivial speed patch, and chances are we cannot guarantee 100% behavior compatibility with the pure-Python version. If you disagree with these two points, then I'm okay with it going in. --

[issue11707] Create C version of functools.cmp_to_key()

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I agree (and was going back and forth between +0 and -0). -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11707

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b0d2b696da19 by Ned Deily in branch '2.7': Issue #9670: Increase the default stack size for secondary threads on http://hg.python.org/cpython/rev/b0d2b696da19 New changeset 378b40d71175 by Ned Deily in branch '3.1': Issue #9670:

[issue11747] unified_diff function product incorrect range information

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: [Uncle Timmy] Would have to look at the history to see who added it, and ask them. That would be me :-) At the time, the goals were to: 1) make an easy-to-use, readable output format for file comparisons, 2) use the

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Applied in 2.7 (for release in 2.7.2), 3.1 (for 3.1.4). 3.2 (for 3.2.1), and default (for 3.3). -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Looks like the patch breaks the OpenIndiana buildbots: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/168 -- resolution: fixed - status: closed - open ___ Python tracker

[issue11747] unified_diff function product incorrect range information

2011-04-09 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11747 ___

[issue11747] unified_diff function product incorrect range information

2011-04-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thanks, Raymond. That file says (in the -u section) If a range is empty, its beginning line number shall be the number of the line just before the range, or 0 if the empty range starts the file. The last clause says to me that gnu diff is

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Emile Heitor
New submission from Emile Heitor i...@netbsd.org: This issue http://bugs.python.org/issue8852 seems to happen again since python 2.6.6. Same cause, same consequences. Patching Modules/socketmodule.h with the following fixes it: --- Modules/socketmodule.h.orig 2010-05-09 15:15:40.0

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-09 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com added the comment: Have a nice weekend! Thank you for the wishes, I hope yours is going well, too! I added IDNA awareness to formataddr() and parseaddr(), updated the docs and wrote 2 tests for it. I wasn't sure if the IDNA awareness should be

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-09 Thread Paul Wouters
New submission from Paul Wouters p...@xelerance.com: ssl.get_server_certificate() does not work for IPv6 addresses: ssl.get_server_certificate( (2001:888:2003:1004:c2ff:eeff:fe00:133,443)) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib64/python2.7/ssl.py,

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It has been fixed in 2.7.x, not 2.6.x (which is in security fixes-only mode). Can you try with 2.7.1? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11810

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Confirmed. In the meantime, you can connect manually using socket.create_connection(): import ssl, socket conn = socket.create_connection((2001:888:2003:1004:c2ff:eeff:fe00:133, 443)) sock = ssl.wrap_socket(conn)

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Emile Heitor
Emile Heitor i...@netbsd.org added the comment: Actually, python 2.6 is the default version in pkgsrc (http://www.netbsd.org/docs/software/packages.html), and the reason why i'm pulling up this bug is that python 2.6 failure on SunOS brings down more than 3000 packages :/ Nevertheless, i'll

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11811 ___

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, python 2.6 is the default version in pkgsrc (http://www.netbsd.org/docs/software/packages.html), and the reason why i'm pulling up this bug is that python 2.6 failure on SunOS brings down more than 3000 packages :/ Nevertheless, i'll

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

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3982be773b54 by Antoine Pitrou in branch 'default': Issue #11757: select.select() now raises ValueError when a negative timeout http://hg.python.org/cpython/rev/3982be773b54 -- ___ Python

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Emile Heitor
Emile Heitor i...@netbsd.org added the comment: Well, pkgsrc is an independent, portable sources-based packaging system which provides a complete set of packages for many architectures. Python is provided as a package per-se, and we do not yet have the ability to fallback to native python

[issue11812] transient test_telnetlib failure

2011-04-09 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/2920/steps/test/logs/stdio test test_telnetlib failed -- Traceback (most recent call last): File

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11810 ___

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 42d5001e5845 by Ned Deily in branch '3.1': Issue9670: Back out changeset 378b40d71175; test fails on other platforms http://hg.python.org/cpython/rev/42d5001e5845 New changeset 54edabf2846d by Ned Deily in branch '3.2': Issue9670:

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Reverting the patch since it caused failures on failure on some other platform buildbots (for instance, Gentoo and OpenIndiana). It also fails on OS X buildbots with pydebug enabled, something I hadn't tested:

[issue11813] inspect.getattr_static doesn't get module attributes

2011-04-09 Thread Andreas Stührk
New submission from Andreas Stührk andy-pyt...@hammerhartes.de: My patch for issue #11133 introduced a regression: it is no longer possible to get attributes of modules. That is because modules use tp_dictoffset (at C level). The instance __dict__ is exposed to Python code using a

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-09 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: There's the following code in pool.py, line 494 and following: debug('joining task handler') task_handler.join() debug('joining result handler') task_handler.join() It seems the last line should read

[issue11770] inspect.dir_static

2011-04-09 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: See issue #11813 for the module problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11770 ___

[issue11812] transient test_telnetlib failure

2011-04-09 Thread Jack Diederich
Changes by Jack Diederich jackd...@gmail.com: -- nosy: +jackdied ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11812 ___ ___ Python-bugs-list

[issue11815] Simplifications in concurrent.futures

2011-04-09 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Queue.get(block=True) cannot raise EmptyError, meaning there's some dead code that we can remove. -- components: Library (Lib) files: cfsimplify.patch keywords: patch messages: 133435 nosy: bquinlan, pitrou priority: normal severity:

[issue11815] Simplifications in concurrent.futures

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: A further optimization would be to use a SimpleQueue (from multiprocessing.queues) for the result_queue in the ProcessPoolExecutor. A SimpleQueue is much more light-weight than a normal Queue, which has a bunch of additional locks and a

[issue11796] Comprehensions in a class definition mostly cannot access class variable

2011-04-09 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11796 ___ ___

[issue11816] Add functions to return disassembly as string

2011-04-09 Thread Eugene Toder
New submission from Eugene Toder elto...@gmail.com: As discussed in Issue11549 a couple of tests need to inspect disassembly of some code. Currently they have to override sys.stdout, run dis and restore stdout back. It would be much nicer if dis module provided functions that return

[issue11816] Add functions to return disassembly as string

2011-04-09 Thread Eugene Toder
Changes by Eugene Toder elto...@gmail.com: Removed file: http://bugs.python.org/file21598/dis.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Add functions to return disassembly as string

2011-04-09 Thread Eugene Toder
Changes by Eugene Toder elto...@gmail.com: Added file: http://bugs.python.org/file21599/dis.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Add functions to return disassembly as string

2011-04-09 Thread Eugene Toder
Changes by Eugene Toder elto...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___ Python-bugs-list mailing

[issue11816] Add functions to return disassembly as string

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Inspecting the text disassembly is a bit fragile for testing. It would be better to scan a list of (opcode, oparg) pairs for given pattern (i.e. (LOAD_CONST, 3) where consts[3] -- some target value). -- nosy:

[issue11816] Add functions to return disassembly as string

2011-04-09 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: Agreed, but that would require rewriting of all tests in test_peepholer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue5996] abstract class instantiable when subclassing dict

2011-04-09 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: This patch fixes the problem by moving the check from object_new to PyType_GenericAlloc. The check is very cheap, so this should not be an issue. -- keywords: +patch nosy: +eltoder Added file: http://bugs.python.org/file21600/abc.patch

[issue11816] Add functions to return disassembly as string

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Yep! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___

[issue11817] berkeley db 5.1 support

2011-04-09 Thread Per Øyvind Karlsen
New submission from Per Øyvind Karlsen peroyv...@mandriva.org: This patch adds support for berkeley db = 5.1. -- components: Extension Modules files: Python-2.7.1-berkeley-db-5.1.patch keywords: patch messages: 133442 nosy: proyvind priority: normal severity: normal status: open title:

[issue11817] berkeley db 5.1 support

2011-04-09 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: forgot some additional config checks in setup.py in previous patch.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11817 ___

[issue11817] berkeley db 5.1 support

2011-04-09 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: sloppysloppy... fix previous patch -- Added file: http://bugs.python.org/file21602/Python-2.7.1-berkeley-db-5.1.patch ___ Python tracker rep...@bugs.python.org

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

2011-04-09 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9904 ___

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

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b6fe63c914e4 by Eli Bendersky in branch 'default': Issue #9904: fix and clarify some comments + fix indentation in symtable code http://hg.python.org/cpython/rev/b6fe63c914e4 -- nosy: +python-dev

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

2011-04-09 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I committed the fixes to 3.3 (see no reason to backport these). So unless there are objections I will close the issue in a few days. -- stage: needs patch - commit review status: open - pending ___

[issue11817] berkeley db 5.1 support

2011-04-09 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11817 ___ ___ Python-bugs-list mailing list