[issue10550] Windows: leak in test_concurrent_futures

2011-03-23 Thread Stefan Krah
Stefan Krah 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 added the comment: There is no such PEP - http://www.python.org/dev/peps/pep-0397/ -- nosy: +techtonik ___ Python tracker ___ _

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread Georg Brandl
Georg Brandl added the comment: Now there is :) -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-03-23 Thread STINNER Victor
STINNER Victor 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(). > print() could call file.

[issue11627] segfault raising an arbitrary object as an exception

2011-03-23 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-03-23 Thread Georg Brandl
Georg Brandl 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 ___ Python tracker

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Brian Quinlan
Brian Quinlan 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 tracker

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

2011-03-23 Thread Eric Smith
Eric Smith 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 a hassle

[issue11230] "Full unicode import system" not in 3.2

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

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

2011-03-23 Thread Gunnar Aastrand Grimnes
New submission from Gunnar Aastrand Grimnes : 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 similar to this, but

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : 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 14:25 ~ $ 14:

[issue9523] Improve dbm modules

2011-03-23 Thread Ray.Allen
Ray.Allen 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 re-usage in Module

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread STINNER Victor
STINNER Victor added the comment: I don't have this behaviour on Linux. Is it specific to Mac OS X? -- nosy: +haypo ___ Python tracker ___ __

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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 care of joi

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 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. >>> [1]+ Stop

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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, 15:20:28) [GCC 4.2.

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: 8) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali 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 signal.signal(signal.SIGTSTP, sign

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 like a SIGSTOP. > If

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 (Apple Inc. build 5664)

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo 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 added the comment: testing nosy -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: testing again -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali 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 to have sys.ps1 '>>> ' printe

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

2011-03-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 ___

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo 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 ___

[issue9523] Improve dbm modules

2011-03-23 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 shallow into Python yet), and

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 but p

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I propose instead to change 'make quicktest' to use -j(N>1) 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 and I think als

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread David Fraser
Changes by David Fraser : -- nosy: +davidfraser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I propose instead to change 'make quicktest' to use -j(N>1) 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 Skip's la

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali 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. getchar (read) does ret

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw 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 necessary i

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: testing nosy -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -ezio.melotti, georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +georg.brandl -pitrou priority: -> release blocker versions: +Python 3.2 ___ Python tracker ___ ___

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: r.david.murray -> nosy: +ezio.melotti -georg.brandl, python-dev, r.david.murray priority: release blocker -> ___ Python tracker ___ __

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Nadeem Vawda
Nadeem Vawda 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 any reason no

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo 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 added the comment: test the fixed nosy list -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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 removed.

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw 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? That's not the

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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 paper bag way.

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

2011-03-23 Thread Billy Saelim
New submission from Billy Saelim : 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 {'content-length

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw 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 files were touc

[issue11629] Reference implementation for PEP 397

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

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
New submission from Skip Montanaro : 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 don't see any di

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

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya 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 = >>> 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zi

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ezio.melotti, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2011-03-23 Thread Raymond Hettinger
Raymond Hettinger 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 GMT Content-Type: applicat

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Ross Lagerwall
Ross Lagerwall 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 don't think the length of t

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

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya added the comment: This affects urllib, as well: C:\Users\santa>python 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 = 'http://wwwsearch.so

[issue11244] Negative tuple elements produce inefficient code.

2011-03-23 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/ead9c1b9f547 ---

[issue11244] Negative tuple elements produce inefficient code.

2011-03-23 Thread Mark Dickinson
Mark Dickinson 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 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 here for a long tim

[issue11589] Additional tests for email module

2011-03-23 Thread Roundup Robot
Roundup Robot 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: add additional t

[issue11589] Additional tests for email module

2011-03-23 Thread R. David Murray
R. David Murray 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 merge markers when doin

[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 : -- assignee: -> r.david.murray stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker _

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo 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

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: It should have been '-w', not '-W'. -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-lis

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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. -- nosy: +

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

2011-03-23 Thread Terry J. Reedy
Terry J. Reedy 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 (1 dot printed at

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

2011-03-23 Thread Roundup Robot
Roundup Robot 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': Merge #11590: fix

[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 added the comment: Thanks again, Michael. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Brett Cannon
Brett Cannon 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 can be made to e

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Brian Quinlan
Brian Quinlan 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) >>> Error in atexit._run_exitfuncs: NameError: global name

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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) > > >>> > Error in atexit._run_exitfuncs: >

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 Parser/myreadline.c

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

2011-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 -- components: Interpret

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

2011-03-23 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- 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 tracker

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

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 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 3.2 Added file:

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

2011-03-23 Thread Éric Araujo
Éric Araujo 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 __

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file21360/cfpolling3.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Nadeem Vawda
Nadeem Vawda 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 thing I noticed about the

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro 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 ___

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Éric Araujo
Éric Araujo 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 __

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

2011-03-23 Thread R. David Murray
R. David Murray 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 defining sub-functions ea

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro 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 later this

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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, if

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

2011-03-23 Thread Davide Rizzo
Davide Rizzo 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 latter, as it wouldn

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Roundup Robot
Roundup Robot 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 regrtest. http:

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-23 Thread Brett Cannon
Brett Cannon 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. -- assignee: brett.cannon -

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

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou 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 contextlib.context

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

2011-03-23 Thread Lukas Lueg
New submission from Lukas Lueg : 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 raised when __iter__() is

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2011-03-23 Thread reedobrien
Changes by reedobrien : -- nosy: +reedobrien ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8754] ImportError: quote bad module name in message

2011-03-23 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2011-03-23 Thread STINNER Victor
STINNER Victor added the comment: Sorry to ask that, but would it be possible to write an automated test for this issue? -- ___ Python tracker ___ _

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Jack Jansen
New submission from Jack Jansen : 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 distribution of the DLL (and .lib) availabl

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

2011-03-23 Thread Senthil Kumaran
Senthil Kumaran 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. Content-Type header. c

[issue8754] ImportError: quote bad module name in message

2011-03-23 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: But for a debug build to be really useful, the source code must be available to the debugger. Compiling these source files is really a matter of minutes... provided that external dependencies are all present and also compiled in debug mode. -- n

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Brian Curtin
Brian Curtin added the comment: I believe there was a previous request for this which was rejected, likely for reasons Amaury listed. -- nosy: +brian.curtin, loewis ___ Python tracker

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Jack Jansen
Jack Jansen added the comment: Sorry, I think I wasn't clear in my original message. I don't want to debug Python, I want to debug only my own code. But because it embeds Python I cannot debug my own code, because it needs to link to Python. Indeed, if it was only Python itself I would have b

  1   2   >