[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2011-03-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10978 ___ ___

[issue3056] Simplify the Integral ABC

2011-03-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low versions: +Python 3.3 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3056 ___

[issue4498] Compiler warning signed/unsigned comparison in mmapmodule

2011-03-23 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I no longer have access to the compiler that emitted the warning. -- resolution: - out of date status: open - closed title: Compiler warning signed/unsigned comparion in mmapmodule - Compiler warning signed/unsigned

[issue10550] Windows: leak in test_concurrent_futures

2011-03-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can't reproduce it any more. Looks like it has been fixed in the meantime. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: There is no such PEP - http://www.python.org/dev/peps/pep-0397/ -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Now there is :) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___

[issue11633] regression: print buffers output when end=''

2011-03-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: amaury When python is run from a console, sys.stdout is line buffered. amaury sys.stdout.write() flushes if there is a carriage return. amaury No need to change anything here. Anatoly would like a flush after all calls to print().

[issue11627] segfault raising an arbitrary object as an exception

2011-03-23 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11627 ___ ___ Python-bugs-list

[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Now that keyword support was introduced, I'd rather fix the documentation to use the new name. -- assignee: - docs@python components: +Documentation -Library (Lib) nosy: +docs@python, georg.brandl

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Your approach seems workable but your patch allows the interpreter to exit while work items are still being processed. See the comment at the top of concurrent/futures/thread.py. -- ___ Python

[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-23 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I agree with Georg, unfortunately. And I say unfortunately because neither logopt nor logoption is a good name. The log part adds nothing. The man page for syslog calls this option, which would be my preferred name. But changing it now would be

[issue11230] Full unicode import system not in 3.2

2011-03-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11230 ___ ___ Python-bugs-list

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-23 Thread Gunnar Aastrand Grimnes
New submission from Gunnar Aastrand Grimnes gromg...@gmail.com: The startElementNS method in the XMLGenerator ignores the encoding set. it does: self._out.write(' xmlns:%s=%s' % (prefix, uri)) whereas it should have done: self._write(' xmlns:%s=%s' % (prefix, uri)) Issue 938076 was

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: 14:23 ~ $ python3 Python 3.3a0 (default:4a5782a2b074, Mar 21 2011, 15:20:28) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. ^Z [1]+ Stopped python3

[issue9523] Improve dbm modules

2011-03-23 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Updated patch: 1, Changes follows review comments: http://codereview.appspot.com/4185044/. Thanks eric! 2, Make Objects/dictobject.c:all_contained_in() a common useful limited api Object/abstract.c:_PyObject_AllContainedIn() for the purpose of

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't have this behaviour on Linux. Is it specific to Mac OS X? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Your approach seems workable but your patch allows the interpreter to exit while work items are still being processed. See the comment at the top of concurrent/futures/thread.py. Why are you saying that? In my patch, _python_exit() still takes

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 01:38:46PM +, STINNER Victor wrote: I don't have this behaviour on Linux. Is it specific to Mac OS X? (Wish i could tell ;-) -- ___ Python tracker

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: On linux it looks the same for me, but when I press enter the prompt appears again: $ ./python Python 3.3a0 (default:f8d6f6797909, Mar 20 2011, 05:55:16) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information.

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 01:44:06PM +, Ezio Melotti wrote: On linux it looks the same for me, but when I press enter the prompt appears again: 14:49 ~ $ jobs 14:49 ~ $ python3 Python 3.3a0 (default:4a5782a2b074, Mar 21 2011,

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: 8) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: What's the problem here ? CTRL-Z causes the controlling terminal to send a SIGTSTP to the process, and the default handler stops the process, pretty much like a SIGSTOP. If you don't want that to happen: import signal

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 02:05:46PM +, Charles-Francois Natali wrote: What's the problem here ? CTRL-Z causes the controlling terminal to send a SIGTSTP to the process, and the default handler stops the process, pretty much

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 02:05:46PM +, Charles-Francois Natali wrote: import signal signal.signal(signal.SIGTSTP, signal.SIG_IGN) 15:27 ~/tmp $ python3 Python 3.3a0 (default:4a5782a2b074, Mar 21 2011, 15:20:28) [GCC 4.2.1

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: davide@macrisorto ~/cpython $ ./python.exe Python 3.3a0 (default:4a5782a2b074, Mar 23 2011, 15:26:35) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. ^Z [1]+ Stopped

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: testing nosy -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: testing again -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: I'm still not sure I understand the problem. - when you hit CTRL-Z, the process is put in background, since it receives a SIGTSTP : normal - when you put it in foreground with 'fg', it doesn't resume ? Did you try to hit ENTER to have

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Do you have a test or a small script which shows the incorrect output? -- nosy: +amaury.forgeotdarc stage: - test needed ___ Python tracker rep...@bugs.python.org

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: The process did exit on fg. Compare with the 2nd paste on my previous message (Python shipped with OS X). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650

[issue9523] Improve dbm modules

2011-03-23 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9523 ___ ___ Python-bugs-list mailing

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: The exit status code is always 0. It seems to me somewhere in a run() somebody sets some 'do exit' and thus causing a normal exit. But i really can't find something down in pythonrun.c at a short glance (and i just dived

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Summary: - remove make quicktest and make memtest - when -j0 is passed to regrtest, use the cpu count detected by multiprocessing - remove the duplicate test in make test - add -j0 to the test options in make test The patch is against default

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I propose instead to change 'make quicktest' to use -j(N1) and blacklist the following tests: test_mmap test_shelve test_posix test_largefile test_concurrent_futures Then (for me) it runs in 3m20s wall clock time which is totally reasonable

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread David Fraser
Changes by David Fraser dav...@sjsoft.com: -- nosy: +davidfraser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I propose instead to change 'make quicktest' to use -j(N1) and blacklist the following tests: test_mmap test_shelve test_posix test_largefile test_concurrent_futures Why would you blacklist these tests? They are useful. I agree with

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: In that case, it's likely due to the way OS-X handles interrupted syscalls. Under Linux, getchar and friends (actually read with default SA_RESTART) won't return EINTR on (SIGSTOP|SIGTSTP)/SIGCONT. Under OS-X, it seems that e.g.

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Mar 23, 2011, at 03:14 PM, Antoine Pitrou wrote: test_mmap test_shelve test_posix test_largefile test_concurrent_futures Why would you blacklist these tests? They are useful. Please keep in mind the use case. Are these really

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: testing nosy -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: -ezio.melotti, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +georg.brandl -pitrou priority: - release blocker versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: r.david.murray - nosy: +ezio.melotti -georg.brandl, python-dev, r.david.murray priority: release blocker - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: - when -j0 is passed to regrtest, use the cpu count detected by multiprocessing - remove the duplicate test in make test - add -j0 to the test options in make test +1. The duplicate test seems quite wasteful (outside of testall). Is there

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: You are right. The previous runs were without readline. With readline it behaves as expected. For the sake of completeness, here's the output of your snippet after Ctrl+Z, fg: getchar: Interrupted system call --

[issue3080] Full unicode import system

2011-03-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test the fixed nosy list -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3080 ___

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is there any reason not to add -j0 for testall as well? Have you looked at the patch? :) Are these really necessary in a push-race, post-local-merge, does Python crash-and-burn case? Yes, they are. If they are not significant, they should be

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Mar 23, 2011, at 04:06 PM, Antoine Pitrou wrote: Sorry, that's completely bogus. If a merge race may introduce a regression, then there's no reason the regression will occur in the non-blacklisted tests. Have you heard of Murphy's law?

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You've now merged any changes that have come in since you did your thorough tests, and you're trying to beat the other guy to the push. You want something that can run *fast* and just proves that the merge didn't hose Python in some brown

[issue11652] urlib2 returns a pair of integers as the content-length value

2011-03-23 Thread Billy Saelim
New submission from Billy Saelim sae...@gmail.com: urlopen does not always return a single value for 'content-length'. For example: import urllib2 request = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zip' fp = urllib2.urlopen(request) fp.info().dict

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Mar 23, 2011, at 04:22 PM, Antoine Pitrou wrote: What does brown paper bag way mean? It seems to be some kind of urban legend at this point. A merge won't magically break all C files and prevent Python from compiling. Especially if no C

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
New submission from Skip Montanaro s...@pobox.com: At Antoine's behest, I tried running ./python.exe -m test -j2 in my cpython sandbox and saw several test case failures which didn't appear when I executed a simple make test He suggested I add the -W flag and try again. I did, but I

[issue11652] urlib2 returns a pair of integers as the content-length value

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import urllib2 request =

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ezio.melotti, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___

[issue11652] urlib2 returns a pair of integers as the content-length value

2011-03-23 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Interesting, the Content-Length header was sent twice: HTTP/1.1 200 OK Server: Apache/2.2.3 (CentOS) Last-Modified: Sat, 07 Feb 2009 19:15:15 GMT ETag: 46aef-46258f510b6c0 Content-Length: 289519 Expires: Fri, 25 Mar 2011 17:32:49

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: The patch seems to work. I agree that quicktest and memtest should be removed as well as the duplicate test. The only thing I would change is to create the number of jobs to be double the cpu count - I think this works quicker. I

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: This affects urllib, as well: C:\Users\santapython Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import urllib request =

[issue11244] Negative tuple elements produce inefficient code.

2011-03-23 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset ead9c1b9f547 by Mark Dickinson in branch 'default': Issue #11244: Remove outdated peepholer check that was preventing the peepholer from folding -0 and -0.0. Thanks Eugene Toder for the patch.

[issue11244] Negative tuple elements produce inefficient code.

2011-03-23 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in 'default' branch. Note that the regression still exists in 3.2; I'm not sure that it's worth backporting the two fixes. -- status: open - closed ___ Python tracker

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: my_fgets in Parser/myreadline.c is broken: There's a comment saying that a fgets is retried on EINTR, but the code doesn't retry. It used to in older cPython versions, but there was also a bug, so my guess is that this bug has been

[issue11589] Additional tests for email module

2011-03-23 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3dbea3fa73fb by R David Murray in branch '3.1': #11589: add additional tests for the email quoprimime module. http://hg.python.org/cpython/rev/3dbea3fa73fb New changeset 04c9c831803b by R David Murray in branch '3.2': Merge #11589:

[issue11589] Additional tests for email module

2011-03-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks, Michael! I tweaked the patch slightly: deleted that test-writing-helper check you had marked with the XXX, and renamed the helper test methods to _test_XXX. I also didn't wind up applying it to 2.7 because hg doesn't support

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray stage: - patch review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: The patch works fine, thank you. I was trying the same fix, but got stuck trying to understand what led to the decision in issue 960406. Still not sure. -- ___ Python tracker rep...@bugs.python.org

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: It should have been '-w', not '-W'. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I committed the -j0 part of the patch in d8dd7ab6039d. Brett made the point on #python-dev that a Makefile change doesn't help Windows users. Instead, we may have a Python script somewhere that both make test and make quicktest call.

[issue11633] regression: print buffers output when end=''

2011-03-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I completely agree that file/socket output should be left alone. Flushing char by char to either is a bit insane. The two interactive to screen use cases I can think of are text progress meters, mentioned by Anatoly, such as : Working

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 45cc298d40eb by R David Murray in branch '3.1': #11590: fix quoprimime decode handling of empty strings and line endings. http://hg.python.org/cpython/rev/45cc298d40eb New changeset df613f7b726a by R David Murray in branch '3.2':

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks again, Michael. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11590

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have attached a Python script which does what Antoine's patch does except which is expected to live in Tools/scripts. The perk of doing this in a Python script is that Windows users will be able to simply execute the script while the Makefile

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Sorry, I didn't read an error message very carefully. When I apply your patch I see: from concurrent.futures import * from time import * t = ThreadPoolExecutor(5) t.submit(sleep, 100) Future at 0x8acc94c state=running ctrl-D Error in

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry, I didn't read an error message very carefully. When I apply your patch I see: from concurrent.futures import * from time import * t = ThreadPoolExecutor(5) t.submit(sleep, 100) Future at 0x8acc94c state=running ctrl-D Error

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: [versions=Python 3.2,Python 3.1,Python 2.7;nosy:+akuchling] Reply-To: In-Reply-To: 1300905163.47.0.72975942018.issue11...@psf.upfronthosting.co.za On Wed, Mar 23, 2011 at 06:32:43PM +, Charles-Francois Natali wrote: my_fgets

[issue11654] errors in atexit hooks don't change process exit code

2011-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Not sure if it's the desired behaviour, so I'm reporting it: $ ./python -c import atexit; atexit.register(lambda: 1/0) echo success Error in atexit._run_exitfuncs: ZeroDivisionError: division by zero [36956 refs] success --

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

2011-03-23 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- components: -IO nosy: +akuchling title: CTRL-Z causes interpreter exit - Faulty RESTART/EINTR handling in Parser/myreadline.c versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python

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

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: (Oh - when will i get this tracker right? Is there somewhere *real* documentation which applies to what actually happens?? Sorry once again, all of you!) -- ___ Python tracker

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, here is a new patch with an additional test for the atexit hook. If you don't object, I would like to start committing the test changes, and then the code changes themselves. -- stage: needs patch - patch review versions: +Python

[issue7391] Re-title the Using Backslash to Continue Statements anti-idiom

2011-03-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: More links for the future update of doanddonts are under http://uthcode.sarovar.org/python.html#simple-is-better-than-complex -- ___ Python tracker rep...@bugs.python.org

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, test didn't work under Windows. Here is a new patch. -- Added file: http://bugs.python.org/file21361/cfpolling3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file21360/cfpolling3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Looking at the actual times with -j0, I don't think there is any need to keep quicktest - with the removal of the duplicate test, I can do a full run in 3m16s (on a debug build; non-debug takes 1m54s), which seems plenty fast enough. One

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Thanks. That worked better. Here is the tail end of the output showing the verbose test output. -- Added file: http://bugs.python.org/file21362/output ___ Python tracker rep...@bugs.python.org

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Brett, -W exists too and it seems it failed working here. Skip, can you please try make distclean and then rebuild from scratch? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think the pydoc failure is due to haypo’s patch in #3080. Another patch (by me) in #8754 has a fix. -- nosy: +eric.araujo, haypo ___ Python tracker rep...@bugs.python.org

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Michael, in general your approach looks sound and is much easier to read and comprehend than the original code (which, as the comments say, was never refined from the original quick and dirty hack). However, rather than dynamically

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Antoine Skip, can you please try make distclean and then rebuild from Antoine scratch? I did. The last output was after make distclean ./configure ... my usual suspects ... make ./python.exe -j2 -w I will try one more time

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine Skip, can you please try make distclean and then rebuild from Antoine scratch? I did. The last output was after Oops, sorry. I will try one more time later this evening with a capital W. I have a train to catch first. Well,

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

2011-03-23 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: The faulty behavior was presumably introduced in r36346, when the continue statement was removed. I already linked the relevant discussion, but I'm not sure whether that was a desired change or just an oversight. I'm inclined to believe the

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 9aa6097131ef by Antoine Pitrou in branch '3.2': Issue #11653: fix -W with -j in regrtest http://hg.python.org/cpython/rev/9aa6097131ef New changeset c381b35e4f31 by Antoine Pitrou in branch 'default': Issue #11653: fix -W with -j in

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The attached patch has both the code to make test skipping more obvious as well as eliminating the concept of expected skips. If someone can double-check that what I am doing here is sane and desirable I would appreciate it. --

[issue11647] function decorated with a context manager can only be invoked once

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: We can either hack this to work by providing ContextDecorator with a way to get the underlying context manager to create a new copy of itself each time, or else revert to the 3.1 status quo and declare that context managers created via

[issue11655] map() must not swallow exceptions from PyObject_GetIter

2011-03-23 Thread Lukas Lueg
New submission from Lukas Lueg lukas.l...@gmail.com: The built-in function map() currently swallows any exception that might have occured while trying to get an iterator from any parameter. This produces unexpected behaviour for applications that require a certain type of exception to be

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2011-03-23 Thread reedobrien
Changes by reedobrien r...@koansys.com: -- nosy: +reedobrien ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10547 ___ ___ Python-bugs-list mailing

[issue8754] ImportError: quote bad module name in message

2011-03-23 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___ ___ Python-bugs-list

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

2011-03-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Sorry to ask that, but would it be possible to write an automated test for this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Jack Jansen
New submission from Jack Jansen jackjan...@users.sourceforge.net: Because VC++ cannot cross-link modules that have been built with debugging to those built without debugging (because of runtime system differences) it would be a boon for people embedding Python if there was a binary

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-03-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Yes, interesting that Content-Length is returned as a comma separated value of ints. Normally, this behavior is observed for other headers which can have multiple values and urllib appends the subsequent values of the header for e.g.

[issue8754] ImportError: quote bad module name in message

2011-03-23 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 9f9b7b656761 by Brett Cannon in branch 'default': Have importlib use the repr of a module name in error messages. http://hg.python.org/cpython/rev/9f9b7b656761 -- nosy: +python-dev ___

  1   2   >