[issue10978] Add optional argument to Semaphore.release for releasing multiple threads
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3056] Simplify the Integral ABC
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4498] Compiler warning signed/unsigned comparison in mmapmodule
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 comparison in mmapmodule ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10550] Windows: leak in test_concurrent_futures
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 rep...@bugs.python.org http://bugs.python.org/issue10550 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
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(). print() could call file.flush() if file.isatty(), *after* the multiple calls to file.write(). I vote +0 to change print(), call sys.stdout.flush(), if: - file option is not used (and so, sys.stdout is used) - sys.stdout is a TTY - end option is used (fast heuristic to check if print will write a newline or not, a better one whould be to check if end contains a newline character or not, but we had to check for \n and/or \r, for a little gain) But I don't want to change print() for print(text, file=file), because it would make Python slower and print(... file=file) is not used to an interactive prompt or to display informations to the user. Behavior is same when pasting into interactive interpreter ... I presume interpreter flushes before or after printing next prompt. Did you wrote all commands on the same line? Python does change stdout buffer in interactive mode: if (Py_UnbufferedStdioFlag) { #ifdef HAVE_SETVBUF setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ); setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); setvbuf(stderr, (char *)NULL, _IONBF, BUFSIZ); #else /* !HAVE_SETVBUF */ setbuf(stdin, (char *)NULL); setbuf(stdout, (char *)NULL); setbuf(stderr, (char *)NULL); #endif /* !HAVE_SETVBUF */ } else if (Py_InteractiveFlag) { #ifdef MS_WINDOWS /* Doesn't have to have line-buffered -- use unbuffered */ /* Any set[v]buf(stdin, ...) screws up Tkinter :-( */ setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); #else /* !MS_WINDOWS */ #ifdef HAVE_SETVBUF setvbuf(stdin, (char *)NULL, _IOLBF, BUFSIZ); setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ); #endif /* HAVE_SETVBUF */ #endif /* !MS_WINDOWS */ /* Leave stderr alone - it should be unbuffered anyway. */ } #ifdef __VMS else { setvbuf (stdout, (char *)NULL, _IOLBF, BUFSIZ); } #endif /* __VMS */ (it doesn't check if stdout is a TTY or not, but I don't think that it is very useful to use the interactive mode outside a TTY) I have always experienced and expected Python's print to screen to be immediately visible. I thought that was pretty standard in other languages with a print-to-screen separate from general file-write. Did you try Perl, Ruby, bash and other languages? I know that at least the C language requires an explicit call to fflush(stdout). I always used that. Terry, IDLE is completely different, its sys.stdout completely bypasses the new io stack, and there is no buffering... As I wrote: unbuffered mode is not implemented for TextIOWrapper. So even with python3 -u, sys.stdout.write(abc) doesn't flush immediatly into the underlying FileIO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11627] segfault raising an arbitrary object as an exception
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11648] openlog()s 'logopt' keyword broken in syslog module
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11648 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
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 tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11648] openlog()s 'logopt' keyword broken in syslog module
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 a hassle. Also, we clearly need a test for this, since apparently none failed when it was changed to the longer name. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11648 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11230] Full unicode import system not in 3.2
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding
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 similar to this, but for a different method. -- components: XML messages: 131863 nosy: gromgull priority: normal severity: normal status: open title: startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11649 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 14:25 ~ $ 14:25 ~ $ fg python3 [56455 refs] [36537 refs] And 14:29 ~/src/cpython $ ./python.exe Python 3.3a0 (default:267578b2422d, Mar 23 2011, 13:27:15) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. ^Z [3]+ Stopped ./python.exe 14:29 ~/src/cpython $ fg ./python.exe [56559 refs] [36610 refs] -- components: IO, Interpreter Core messages: 131864 nosy: sdaoden priority: normal severity: normal status: open title: CTRL-Z causes interpreter exit versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9523] Improve dbm modules
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 re-usage in Modules/_gdbmmodule.c and Modules/_dbmmodule.c. Not sure if this is proper. I will ask somebody with C knowledge to do a review on the C code. -- Added file: http://bugs.python.org/file21355/issue_9523_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
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 care of joining worker threads. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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. [1]+ Stopped ./python wolf@hp:~/dev/py/py3k$ fg ./python hit enter here [57710 refs] -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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, 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:49 ~ $ fg python3 [56455 refs] [36537 refs] 14:49 ~ $ jobs 14:49 ~ $ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: 8) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 signal.signal(signal.SIGTSTP, signal.SIG_IGN) -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 like a SIGSTOP. If you don't want that to happen: import signal signal.signal(signal.SIGTSTP, signal.SIG_IGN) (What's happening: it's so unresponsive when i try your code .. :) Rather, i want an interactive python to integrate itself neatlessly into normal shell job control, say! Thus i always hope that a program takes care about SIGCONT!! I'm stuck here, grep(1)ing everywhere and only find Modules/signalmodule.c for SIGCONT and SIGTSTP (it's *NOT* SunOS). Where is Python handling job control? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import signal [56457 refs] signal.signal(signal.SIGCONT, lambda sig,frame: print('GOT SIG', sig)) 0 [56488 refs] ^Z [1]+ Stopped python3 15:29 ~/tmp $ fg python3 GOT SIG 19 [56489 refs] [36546 refs] 15:29 ~/tmp $ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 ./python.exe davide@macrisorto ~/cpython $ fg ./python.exe davide@macrisorto ~/cpython $ System Python on OS X 10.6.6: davide@macrisorto ~/py2.6 $ python Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. [1]+ Stopped python davide@macrisorto ~/py2.6 $ fg python ^D davide@macrisorto ~/py2.6 $ (works as expected) -- Python 2.6.6 from hg: davide@macrisorto ~/py2.6 $ ./python.exe Python 2.6.6+ (unknown, Mar 23 2011, 15:19:22) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. ^Z [1]+ Stopped ./python.exe davide@macrisorto ~/py2.6 $ fg ./python.exe [38594 refs] [16875 refs] davide@macrisorto ~/py2.6 $ (same behavior as first post) -- nosy: +davide.rizzo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Ezio Melotti ezio.melo...@gmail.com added the comment: testing again -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 sys.ps1 ' ' printed to stdout ? Or did the process exit ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding
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 http://bugs.python.org/issue11649 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9523] Improve dbm modules
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 shallow into Python yet), and i'm in a hurry, too much to compile+fprintf() pythonrun.c right now. Maybe someone with glue on Python mainloop can give some hints, i'll try this evening to instrument the call graph a bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 but perhaps we should apply to 3.2 as well. -- components: Tests files: maketest.patch keywords: patch messages: 131882 nosy: barry, ncoghlan, pitrou priority: normal severity: normal stage: patch review status: open title: Improve test targets in Makefile type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file21356/maketest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 and I think also still useful. Note that -j is incompatible with -l so some refactoring of TESTOPTS will probably be required. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
Changes by David Fraser dav...@sjsoft.com: -- nosy: +davidfraser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 Skip's latest message on python-dev: if you blacklist things you are removing some coverage. Do note that the most resource-consuming tests are already enabled only when -usomething is passed. Then (for me) it runs in 3m20s wall clock time which is totally reasonable and I think also still useful. Note that -j is incompatible with -l so some refactoring of TESTOPTS will probably be required. In the patch I've removed -l, which I've never seen do anything useful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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. getchar (read) does return EOF with errno set to EINTR, in which case the interactive interpreter will exit, if errno is not checked. Out of curiosity, could you try the C snippet: #include stdio.h int main(int argc, char *argv[]) { int c; if ((c = getchar()) == EOF) { perror(getchar); } return 0; } And interrupt it with CTRL-Z ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 necessary in a push-race, post-local-merge, does Python crash-and-burn case? I agree with Skip's latest message on python-dev: if you blacklist things you are removing some coverage. Of course, but everyone who develops Python should understand when to run the appropriate test target wink. In the patch I've removed -l, which I've never seen do anything useful. +1. I think -j is more useful than -l. -Barry -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: -ezio.melotti, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 any reason not to add -j0 for testall as well? I think there is merit in keeping the quicktest target, though. Perhaps it could be renamed to make it clear that it is only meant for use after merge races? How does racetest sound? -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3080] Full unicode import system
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 removed. If they are significant, they should be run. Perhaps it could be renamed to make it clear that it is only meant for use after merge races? How does racetest sound? 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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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? That's not the point. If it was, you'd always have to run make testall whenever you were resolving a merge race. Otherwise you could leave out something important, right? When you're in the middle of a merge race, you've *already* thoroughly tested your change, along with the full test suite, with a relatively up-to-date python tree + your changes wink. 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. It is not intended to be a thorough test since you've already done that. Anything more than a smoke test will be discovered by the buildbots. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 paper bag way. 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 touched in the first place! If you are confident that you didn't introduce any issue then just commit your merge and push (or run the tests which are relevant to your initial commit). Oh, and again, if some tests are slow on your system, then *please* open issues about them (and/or investigate *why* they are slow). That's much better than ignoring/blacklisting them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib2 returns a pair of integers as the content-length value
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 {'content-length': '289519, 289519', 'x-varnish': '929586024', 'via': '1.1 varnish', 'age': '0', 'expires': 'Fri, 25 Mar 2011 14:36:43 GMT', 'server': 'Apache/2.2.3 (CentOS)', 'last-modified': 'Sat, 07 Feb 2009 19:15:15 GMT', 'connection': 'close', 'etag': '46aef-46258f510b6c0', 'date': 'Wed, 23 Mar 2011 14:36:43 GMT', 'content-type': 'application/zip'} -- components: Library (Lib) messages: 131894 nosy: Billy.Saelim priority: normal severity: normal status: open title: urlib2 returns a pair of integers as the content-length value type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 files were touched in the first place! This whole thread came up originally because some folks wanted a smoke test while resolving the merge race window. If you are confident that you didn't introduce any issue then just commit your merge and push (or run the tests which are relevant to your initial commit). A smoke test addresses the confidence issue, while not introducing a longer race window to run the full test suite. Oh, and again, if some tests are slow on your system, then *please* open issues about them (and/or investigate *why* they are slow). That's much better than ignoring/blacklisting them. Sure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
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 don't see any difference in the output, so either I'm still doing something wrong or the -W flag is somehow mishandled. As far as I can tell the failing tests were not re-run in verbose mode. script command output attached. I ran these tests on Mac OS X Leopard (10.5.8). S -- components: Tests files: typescript messages: 131896 nosy: skip.montanaro priority: normal severity: normal status: open title: Problems with some tests using -j2 versions: Python 3.3 Added file: http://bugs.python.org/file21357/typescript ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib2 returns a pair of integers as the content-length value
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 = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zip' fp = urllib2.urlopen(request) fp.info()['content-length'] '289519, 289519' Not reproducible on Python 3.2+ (presumably 3.x, as well). -- nosy: +santa4nt versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ezio.melotti, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib2 returns a pair of integers as the content-length value
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 GMT Content-Type: application/zip Content-Length: 289519 Date: Wed, 23 Mar 2011 17:32:49 GMT X-Varnish: 93013 Age: 0 Via: 1.1 varnish -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 don't think the length of testing is so bad on my 3 year old core 2 duo it takes 2:40 to run: EXTRATESTOPTS=-j4 time make test -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib{, 2} returns a pair of integers as the content-length value
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 = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.z ip' fp = urllib.urlopen(request) fp.headers['content-length'] '289519, 289519' -- title: urlib2 returns a pair of integers as the content-length value - urlib{,2} returns a pair of integers as the content-length value ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11244] Negative tuple elements produce inefficient code.
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. http://hg.python.org/cpython/rev/ead9c1b9f547 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11244] Negative tuple elements produce inefficient code.
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 rep...@bugs.python.org http://bugs.python.org/issue11244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 here for a long time. Could you try with the attached patch ? It's just a quick'n dirty patch, but it should fix it. -- keywords: +patch Added file: http://bugs.python.org/file21358/fgets_eintr.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11589] Additional tests for email module
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: add additional tests for the email quoprimime module. http://hg.python.org/cpython/rev/04c9c831803b New changeset 2f4865834695 by R David Murray in branch 'default': Merge #11589: add additional tests for the email quoprimime module. http://hg.python.org/cpython/rev/2f4865834695 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11589] Additional tests for email module
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 merge markers when doing a transplant and there were conflicts. Not worth the extra effort that would be required. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol
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 http://bugs.python.org/issue11590 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
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 (1 dot printed at intervals) and timed text like import time for c in 'Similated 10 cps teletype output': print(c,end='') time.sleep(.1) print() which works fine from IDLE and whose non-functioning when started otherwise would puzzle any beginner and many beyond. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol
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': Merge #11590: fix quoprimime decode handling of empty strings and line endings. http://hg.python.org/cpython/rev/df613f7b726a New changeset d9a779be9736 by R David Murray in branch 'default': Merge #11590: fix quoprimime decode handling of empty strings and line endings. http://hg.python.org/cpython/rev/d9a779be9736 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11590 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 can be made to execute the script itself for those that prefer ``make test`` over ``./python Tools/scripts/run_tests.py``. It tries to have reasonable defaults so that people who do not know what they are doing will have a rigorous test run w/o having it take too long. And the defaults can be overridden easily when people want to do that. -- Added file: http://bugs.python.org/file21359/run_tests.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
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 atexit._run_exitfuncs: NameError: global name 'thread' is not defined Does that not happen in your environment? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
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 in atexit._run_exitfuncs: NameError: global name 'thread' is not defined Does that not happen in your environment? Ah, thank you, it does happen here too. I should fix the error (a typo) and add tests for this too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
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 Parser/myreadline.c patch should fix it. Works perfect! Wish i would always find things worked out when i come home :). (And would have taken a long time for me to come to Parser/, i think, so, even more thanks for the patch, Charles-Francois!) The Apple-shipped Python's (2.5, 2.6) work correct, but my self-compiled 2.7 and unpatched 3.3 do not. My self-compiled backward-test 3.2rc2 works, and you are right, Davide, that has readline.so, the others not. (Building of the readline module requires either MacOS X magic or setting of the MACOSX_DEPLOYMENT_TARGET= configure variable, though; Ronald and Ned have worked on that on PyCon (#11485), but this is not yet included and so...) And regardless of all that my_fgets() reacts falsely (in respect to it's own preceeding comment), so this is a bug, no? I make Andrew M. Kuchling nosy, he committed 5fcb0e0be89e. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11654] errors in atexit hooks don't change process exit code
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 -- components: Interpreter Core messages: 131916 nosy: pitrou priority: normal severity: normal status: open title: errors in atexit hooks don't change process exit code type: behavior versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c
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 tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c
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 rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
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 3.2 Added file: http://bugs.python.org/file21360/cfpolling3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7391] Re-title the Using Backslash to Continue Statements anti-idiom
É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 http://bugs.python.org/issue7391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
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 thing I noticed about the -j option is that it prevents test_curses from running, since the child process actually running the test isn't connected to a terminal. I don't know if this is an issue (the curses module doesn't appear to be under active development), but I thought it was worth pointing out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
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 http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
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 http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
É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 http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11606] maxlinelen exceeded by email module's body_encode() function
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 defining sub-functions each time body_encode is called, I've moved the body-construction logic almost completely out of body_encode into a helper object. I think this further clarifies the algorithm. I also used a simpler approach to end-of-list detection (enumerate). That change is more a matter of taste, but does have the advantage of taking fewer lines of code. If you have time to review this and double check my changes (the tests pass, at least), that would be great. Otherwise I'll just go ahead and apply it. -- nosy: +barry Added file: http://bugs.python.org/file21363/quoprimime_body_encode_algorithm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11606 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
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 later this evening with a capital W. I have a train to catch first. Skip -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
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, if -W didn't work once, it probably won't work twice. Not sure you want to bother. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c
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 latter, as it wouldn't have made much sense to leave the loop there otherwise. In this case a patch like the already posted one would do the fix. Steffen, on a side note, I got readline working with brew. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
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 regrtest. http://hg.python.org/cpython/rev/c381b35e4f31 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10966] eliminate use of ImportError implicitly representing SkipTest
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. -- assignee: brett.cannon - stage: needs patch - patch review Added file: http://bugs.python.org/file21364/optional_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11647] function decorated with a context manager can only be invoked once
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 contextlib.contextmanager simply can't be used as decorators. I'm inclined to favour the latter option. I would vote for the former option :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11655] map() must not swallow exceptions from PyObject_GetIter
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 raised when __iter__() is called on their objects. From 24179f82b7de, inside map_new(): 973 /* Get iterator. */ 974 curseq = PyTuple_GetItem(args, i+1); 975 sqp-it = PyObject_GetIter(curseq); 976 if (sqp-it == NULL) { 977 static char errmsg[] = 978 argument %d to map() must support iteration; 979 char errbuf[sizeof(errmsg) + 25]; 980 PyOS_snprintf(errbuf, sizeof(errbuf), errmsg, i+2); 981 PyErr_SetString(PyExc_TypeError, errbuf); 982 goto Fail_2; 983 } We *must* check if there has been any other kind of exception already being set when returning from PyObject_GetIter before setting PyExc_TypeError in line 981. If there is none, it is ok to raise a TypeError; any other exception must be passed on. For example: raising TooManyCacheMissesException in __iter__() causes map(foobar, myobject) to raise TypeError instead of TooManyCacheMissesException. Workaround: use map(foobar, iter(myobject)). The explicit call to iter will either produce an iterator object (which returns self to map()) or raises the correct exception. Python 3 is not affected as map_new() does not throw it's own TypeError in case PyObject_GetIter() fails. -- components: None messages: 131932 nosy: ebfe priority: normal severity: normal status: open title: map() must not swallow exceptions from PyObject_GetIter versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11655 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig
Changes by reedobrien r...@koansys.com: -- nosy: +reedobrien ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10547 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8754] ImportError: quote bad module name in message
Changes by Brett Cannon br...@python.org: -- assignee: - haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11656] Debug builds for Windows would be very helpful
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 distribution of the DLL (and .lib) available that was built with debugging turned on. Right now, to build a debugging version of an application that has Python embedded you must also build Python from source... -- components: Build, Windows messages: 131934 nosy: jackjansen priority: normal severity: normal status: open title: Debug builds for Windows would be very helpful type: feature request versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11656 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib{, 2} returns a pair of integers as the content-length value
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. Content-Type header. curl seems to have got it right in this case, where it returns only one Content-Length header for the above URL. urllib needs to modify to deal with this scenario - If there are multiple content-lengths returned by the server, just use the last one if we are mimic curl behavior. (AFAIK, the standard is to return them comma separated, but in this case, it wont be useful). -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8754] ImportError: quote bad module name in message
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com