[issue10632] multiprocessing generates a fatal error
Changes by Brian Quinlan br...@sweetapp.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10632 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Etienne Robillard e...@gthcfoundation.org added the comment: On 02/01/11 10:50 PM, Glenn Linderman wrote: Glenn Linderman v+pyt...@g.nevcal.com added the comment: Rereading the doc link I pointed at, I guess detach() is part of the new API since 3.1, so doesn't need to be checked for in 3.1+ code... but instead, may need to be coded as: try: sys.stdin = sys.stdin.detach() except UnsupportedOperation: pass -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ Hi! using detach would be great but I'm missing that method here in 2.7! :-) e...@localhost:~$ python2.7 Python 2.7.1 (r271:86832, Jan 2 2011, 10:38:30) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)] on linux2 Type help, copyright, credits or license for more information. sys.stdin.detach Traceback (most recent call last): File stdin, line 1, in module NameError: name 'sys' is not defined import sys sys.stdin.detach Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'file' object has no attribute 'detach' -- title: cgi module cannot handle POST with multipart/form-data in 3.0 - cgi module cannot handle POST with multipart/form-data in 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Etienne Robillard e...@gthcfoundation.org added the comment: i'm thinking this issue is also well connected to: http://bugs.python.org/issue1573931 so a backport of whatever solution comes to 3.2 would be a great addition to Python 2.6 as the very minimum, in order to satisfy minimal backward compatibility! Thanks, On 02/01/11 10:50 PM, Glenn Linderman wrote: Glenn Linderman v+pyt...@g.nevcal.com added the comment: Rereading the doc link I pointed at, I guess detach() is part of the new API since 3.1, so doesn't need to be checked for in 3.1+ code... but instead, may need to be coded as: try: sys.stdin = sys.stdin.detach() except UnsupportedOperation: pass -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10348] multiprocessing: use SysV semaphores on FreeBSD
STINNER Victor victor.stin...@haypocalc.com added the comment: Martin fixed test_concurrent_futures (#10798), this issue can be implemented later. -- type: - feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10348 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8013] time.asctime segfaults when given a time in the far future
STINNER Victor victor.stin...@haypocalc.com added the comment: http://docs.python.org/library/time.html#time-y2kissues Values 100–1899 are always illegal. Why are these values illegal? The GNU libc accepts year in [1900-2^31; 2^31-1] (tm_year in [-2147483648; 2147481747]). If time.accept2dyear=False, we should at least accept years in [1; ]. The system libc would raise an error (return NULL) if it doesn't know how to format years older than 1900. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
New submission from Ross Lagerwall rosslagerw...@gmail.com: Here's a patch that adds a bunch of posix functions that are missing from the posix module. Includes tests documentation. Tested on Linux FreeBSD. Specifically: futimes lutimes futimens fexecve gethostid sethostname waitid lockf readv pread writev pwrite truncate posix_fallocate posix_fadvise sync -- components: Extension Modules files: mpos.patch keywords: patch messages: 125162 nosy: georg.brandl, giampaolo.rodola, gregory.p.smith, loewis, pitrou, rosslagerwall priority: normal severity: normal status: open title: Add some posix functions type: feature request versions: Python 3.3 Added file: http://bugs.python.org/file20239/mpos.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10786] unittest.TextTextRunner does not respect redirected stderr
Michael Foord mich...@voidspace.org.uk added the comment: Thanks Terry. Done. Doc changes committed revision 87679. -- keywords: -patch nosy: -MarkRoddy, terry.reedy resolution: - accepted stage: needs patch - committed/rejected status: open - closed type: feature request - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10813] Suppress adding decimal point for places=0 in moneyfmt()
New submission from Carsten Grohmann carstengrohm...@gmx.de: Hi, the documentation of the decimal module contains a small recipe called moneyfmt() for format decimal values. It's very usefull. I'd like to suggest a small improvement because the output is incorrect with given dp=. (default) and places=0. Example: moneyfmt(decimal.Decimal('-0.02'), neg='', trailneg='', places=1) '0.0' moneyfmt(decimal.Decimal('-0.02'), neg='', trailneg='', places=0) '0.' Change: --- moneyfmt.py 2011-01-03 13:56:32.774169788 +0100 +++ moneyfmt.py.new 2011-01-03 13:56:58.130165330 +0100 @@ -33,7 +33,8 @@ build(trailneg) for i in range(places): build(next() if digits else '0') -build(dp) +if places: +build(dp) if not digits: build('0') i = 0 What do you think about the change? Regrads, Carsten -- assignee: d...@python components: Documentation messages: 125164 nosy: cgrohmann, d...@python priority: normal severity: normal status: open title: Suppress adding decimal point for places=0 in moneyfmt() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application
Ross Lagerwall rosslagerw...@gmail.com added the comment: I tested this on FreeBSD 8.1 - it outputs 'hello world'. I think this should be closed - i think the os.exec* functions should mirror the operating system exec* functions. If the platform has a limitation then so be it. And it seems like the latest versions of those platforms have overcome this limitation anyway. -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6800 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5162] multiprocessing cannot spawn child from a Windows service
Mher Movsisyan mher.movsis...@gmail.com added the comment: Attached test case demonstrates the issue. -- nosy: +mher Added file: http://bugs.python.org/file20240/test_issue5162.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5162 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5162] multiprocessing cannot spawn child from a Windows service
Mher Movsisyan mher.movsis...@gmail.com added the comment: Treating python services like frozen executables solves the issue. The patch is attached. -- Added file: http://bugs.python.org/file20241/forking_r87679.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5162 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10060] python.exe crashes or hangs on help() modules when bad modules found
R. David Murray rdmur...@bitdance.com added the comment: Dev: I have no idea how what you just posted relates to the subject of this issue. Could you clarify please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10060 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.
Michael Foord mich...@voidspace.org.uk added the comment: I'm fine with this functionality being added in 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10775 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
New submission from Antoine Pitrou pit...@free.fr: See e.g. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.1 test_time f:\dd\vctools\crt_bld\self_x86\crt\src\asctime.c(130) : Assertion failed: ( ( tb-tm_mday = 1 ) ( ( ( _days[ tb-tm_mon + 1 ] - _days[ tb-tm_mon ] ) = tb-tm_mday ) || ( ( IS_LEAP_YEAR( tb-tm_year + 1900 ) ) ( tb-tm_mon == 1 ) ( tb-tm_mday = 29 ) ) ) ) program finished with exit code -1073740777 (don't know about 2.6 but it's likely to crash there too) -- components: Library (Lib), Tests messages: 125170 nosy: amaury.forgeotdarc, belopolsky, benjamin.peterson, db3l, georg.brandl, pitrou priority: critical severity: normal stage: needs patch status: open title: assertion failed on Windows buildbots type: crash versions: Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application
Antoine Pitrou pit...@free.fr added the comment: Agreed, not a Python bug. -- nosy: +pitrou resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6800 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
STINNER Victor victor.stin...@haypocalc.com added the comment: Regression introduced by r87648 (issue #8013). -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8013] time.asctime segfaults when given a time in the far future
STINNER Victor victor.stin...@haypocalc.com added the comment: test_time fails with an (C) assertion error on Windows: see issue #10814. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
Antoine Pitrou pit...@free.fr added the comment: First couple comments: - you don't have to modify Misc/NEWS yourself; it will probably make patch maintenance easier - it would seem more natural for readv() to take a sequence of writable buffers (such as bytearrays) instead; I don't think the current signature is very useful - readv() and writev() should support both lists and tuples, at the minimum (perhaps arbitrary iterables if you like to spend more time on it :-)): see the PySequence* API -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10815] Write to /dev/full does not raise IOError
New submission from Michal Vyskocil mvysko...@suse.cz: Write to /dev/full in python3 don't raise IOError. Python2 works as expected, the close call causes an IOError exception with no space left on device message. $ python Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2 Type help, copyright, credits or license for more information. f = open('/dev/full', 'w') f.write('s') f.close() Traceback (most recent call last): File stdin, line 1, in module IOError: [Errno 28] No space left on device However using python3 I don't get an IOError after close $ python3 Python 3.1.2 (r312:79147, Nov 20 2010, 11:33:28) [GCC 4.5.1 20101001 [gcc-4_5-branch revision 164883]] on linux2 Type help, copyright, credits or license for more information. f = open('/dev/full', 'w') f.write('s') 1 f.close() The only one way how to raise IOError in python3 is call f.flush() ... f.write('s') 1 f.flush() Traceback (most recent call last): File stdin, line 1, in module IOError: [Errno 28] No space left on device Documentation of io.IOBase.close() [1] said Flush and close this stream, so one should expect calls f.flush();f.close() will be the same as plain f.close(). [1] http://docs.python.org/py3k/library/io.html -- components: IO messages: 125175 nosy: mvyskocil priority: normal severity: normal status: open title: Write to /dev/full does not raise IOError versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10512] regrtest ResourceWarning - unclosed sockets and files
STINNER Victor victor.stin...@haypocalc.com added the comment: * r87680 fixes test_sockserver * r87681 fixes test_timeout * r87682 fixes test_tk * r87683 fixes test_xmlrpc * r87684 fixes test_socket r87682, r87683, r87684 are patches from Nadeem Vawda. On my Linux box, I am unable to get the warning on test_cgi or test_normalization. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10815] Write to /dev/full does not raise IOError
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is fixed in Python 3.2 beta 2: $ ./python f=open(/dev/full, wb) f.write(b'x') 1 f.close() IOError: [Errno 28] No space left on device ^D sys:1: ResourceWarning: unclosed file _io.BufferedWriter name='/dev/full' sys:1: ResourceWarning: unclosed file _io.FileIO name='/dev/full' mode='wb' If you would like to get the error earlier, disable the buffer (which is not completly possible for a text file, Python requires at least a line buffer). Backport the fix to Python 3.1 is not a good idea because it may break programs using Python 3.1. -- nosy: +haypo resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
R. David Murray rdmur...@bitdance.com added the comment: Etienne: since this is about solving a 3.x specific problem, it will not get backported. Issue 1573931 looks unrelated to me at a quick glance. FYI, you will find that you *do* have detach in 2.7 if you open a file using the io subsystem (import io). Of course, that isn't used for the std files in 2.7. Glen: the new IO subsystem is a complete C layer on top of only the most basic of the C runtime stuff. It does handle cross platform issues. Given that, and given that the input to CGI *should* be bytes, I think letting an error raise if the stream is text and detatch isn't available is fine, though we might find we want to catch it to improve the error message with extra context. Pierre: yes, that diff is what I was looking for. I hope to have time to look it over later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10806] Subprocess error if fds 0,1,2 are closed
Antoine Pitrou pit...@free.fr added the comment: This new patch makes tests more comprehensive (closes all combinations of the three standard fds). -- Added file: http://bugs.python.org/file20242/sp3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10806 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10816] test_multiprocessing: unclosed sockets
New submission from STINNER Victor victor.stin...@haypocalc.com: test_remote (__main__.WithManagerTestRemoteManager) ... /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:812: ResourceWarning: unclosed socket.socket object, fd=8, family=2, type=1, proto=0 util.debug('... decref failed %s', e) ok test_pool_initializer (__main__.TestInitializers) ... /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=9, family=1, type=1, proto=0 util.info('incref failed: %s' % e) ok test_pool_in_process (__main__.TestStdinBadfiledescriptor) ... /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=9, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=9, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) ok test_queue_in_process (__main__.TestStdinBadfiledescriptor) ... /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=9, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=9, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:831: ResourceWarning: unclosed socket.socket object, fd=13, family=1, type=1, proto=0 util.info('incref failed: %s' % e) ok -- components: Library (Lib) messages: 125180 nosy: haypo priority: normal severity: normal status: open title: test_multiprocessing: unclosed sockets versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Etienne Robillard e...@gthcfoundation.org added the comment: On 03/01/11 09:45 AM, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: Etienne: since this is about solving a 3.x specific problem, it will not get backported. Issue 1573931 looks unrelated to me at a quick glance. FYI, you will find that you *do* have detach in 2.7 if you open a file using the io subsystem (import io). Of course, that isn't used for the std files in 2.7. Glen: the new IO subsystem is a complete C layer on top of only the most basic of the C runtime stuff. It does handle cross platform issues. Given that, and given that the input to CGI *should* be bytes, I think letting an error raise if the stream is text and detatch isn't available is fine, though we might find we want to catch it to improve the error message with extra context. Pierre: yes, that diff is what I was looking for. I hope to have time to look it over later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ Thanks for theses precisions, David. So will cgi.FieldStorage still be usable in 3.x using 2.5 semantics ? implementing the size argument in the FieldStorage class would surely be a good fix for WSGI middlewares. Either ways (using the new io subsystem) or monkey-patching cgi.FieldStorage so it accepts the size argument could probably helps to resolve memory-usage issues with things like file uploads! Regards -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa
Kevin Walzer wordt...@users.sourceforge.net added the comment: Ned--thank you for reviewing, testing, and modifying the patch. I applied your revised version to my new install of Python 2.7.1 and it works fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6075 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
Antoine Pitrou pit...@free.fr added the comment: For the record, I get the following failures under OpenSolaris: == ERROR: test_lutimes (test.test_posix.PosixTester) -- Traceback (most recent call last): File /home/antoine/py3k/cc/Lib/test/test_posix.py, line 265, in test_lutimes posix.lutimes(support.TESTFN, None) AttributeError: 'module' object has no attribute 'lutimes' == ERROR: test_posix_fallocate (test.test_posix.PosixTester) -- Traceback (most recent call last): File /home/antoine/py3k/cc/Lib/test/test_posix.py, line 236, in test_posix_fallocate posix.posix_fallocate(fd, 0, 10) OSError: [Errno 22] Invalid argument -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10502] Add unittestguirunner to Tools/
Michael Foord mich...@voidspace.org.uk added the comment: Committed revision 87685. It would be nice to see this included in the Mac OS X and Windows distribution, but I guess that applies to the *whole* Tools/ directory. -- resolution: - accepted stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10816] test_multiprocessing: unclosed sockets
STINNER Victor victor.stin...@haypocalc.com added the comment: Ok, I found it: fixed by r87686 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook
New submission from Robert Cheng robert.h.ch...@gmail.com: When reporthook is None, size variable is not computed and defaulted to -1. Thus, without reporthook, ContentTooShortError is not raised even when Content-Length header is supplied and download size is less than expected amount, contrary to the documentation. -- components: Library (Lib) messages: 125186 nosy: RC priority: normal severity: normal status: open title: urllib.request.urlretrieve never raises ContentTooShortError if no reporthook type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10817 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10817 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
Antoine Pitrou pit...@free.fr added the comment: According to the posix_fallocate() man page under OpenSolaris: EINVALThe len argument is less than or equal to zero, or the offset argument is less than zero, or the underlying file system does not support this operation. I would go for the third (last) interpretation: the filesystem (ZFS here) doesn't support it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9115] test_site: support for systems without unsetenv
Zsolt Cserna zsolt.cse...@morganstanley.com added the comment: I confirm that this patch fixes the problem. Thanks. On my systems I haven't seen other bugs related to unsetenv - however, it might be useful to fix subprocess.Popen and subprocess.call to use the os.environ by default (but this would be another request or discussion). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9115 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Can someone with a windows box test time.asctime((12345, 1, 1, 0, 0, 0, 0, 0, 0))? If that crashes as well, can you tell which part of ( ( tb-tm_mday = 1 ) ( ( ( _days[ tb-tm_mon + 1 ] - _days[ tb-tm_mon ] ) = tb-tm_mday ) || ( ( IS_LEAP_YEAR( tb-tm_year + 1900 ) ) ( tb-tm_mon == 1 ) ( tb-tm_mday = 29 ) ) ) ) triggers the assertion? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes
New submission from STINNER Victor victor.stin...@haypocalc.com: The pydoc module has two DocHandler classes and two DocServer classes. I think that they can be easily factorized. DocServer may also use serve_forever()+shutdown() instead of serve_until_quit()+quit flag, to be able to wait the server (with shutdown()). -- assignee: d...@python components: Documentation, Library (Lib) messages: 125190 nosy: d...@python, haypo priority: normal severity: normal status: open title: pydoc: refactorize duplicate DocHandler and DocServer classes versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes
STINNER Victor victor.stin...@haypocalc.com added the comment: I opened this issue because I had to fix a bug twice in pydoc: r87687 (fix a ResourceWarning(unclosed socket)). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Brian Curtin cur...@acm.org added the comment: Alexander: PCbuild\amd64\python_d.exe Python 3.2b2+ (py3k, Jan 3 2011, 10:24:18) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import time [54931 refs] time.asctime((12345, 1, 1, 0, 0, 0, 0, 0, 0)) 'Mon Jan 01 00:00:00 345' [54935 refs] -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10512] regrtest ResourceWarning - unclosed sockets and files
STINNER Victor victor.stin...@haypocalc.com added the comment: * r87686 fixes multiprocessing * r87687 fixes pydoc * r87688 fixes test_subprocess Remaining ResourceWarning warnings: * test_imaplib * test_urllibnet * test_urllib2net -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 3, 2011 at 11:26 AM, Brian Curtin rep...@bugs.python.org wrote: .. PCbuild\amd64\python_d.exe Python 3.2b2+ (py3k, Jan 3 2011, 10:24:18) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import time [54931 refs] time.asctime((12345, 1, 1, 0, 0, 0, 0, 0, 0)) 'Mon Jan 01 00:00:00 345' Thanks, Brian. This is rather strange because checktm() is supposed to convert tm_day=0 to 1: if (buf-tm_mday == 0) buf-tm_mday = 1; Does time.asctime((12345, 1, 0, 0, 0, 0, 0, 0, 0)) crash on your system? BTW, '' in the output looks like a naive ASCII encoding for the 12-th millennium: 12 You may need year 300,000 to observe a crash. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Brian Curtin cur...@acm.org added the comment: No crash on 0-day or 300,000. I bumped it up to 3,000,000 and got a UnicodeDecodeError, although I'm not sure of the relevance of that to this issue. time.asctime((12345, 1, 0, 0, 0, 0, 0, 0, 0)) 'Mon Jan 01 00:00:00 345' [54935 refs] time.asctime((30, 1, 0, 0, 0, 0, 0, 0, 0)) 'Mon Jan 01 00:00:00 \\000' [54935 refs] time.asctime((300, 1, 0, 0, 0, 0, 0, 0, 0)) Traceback (most recent call last): File stdin, line 1, in module UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position 20: invalid continuation byte -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 3, 2011 at 11:43 AM, Brian Curtin rep...@bugs.python.org wrote: .. No crash on 0-day or 300,000. I bumped it up to 3,000,000 and got a UnicodeDecodeError, although I'm not sure of the relevance of that to this issue. It looks like we need an XP box with a debug version of the crt lib to reproduce the crash. .. time.asctime((300, 1, 0, 0, 0, 0, 0, 0, 0)) Traceback (most recent call last): File stdin, line 1, in module UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position 20: invalid continuation byte Well, undefined behavior is undefined behavior. Arguably, writing binary garbage in a timestamp is better than crashing. (given Windows reputation, I would not be surprised if the above also involves undetected memory corruption, though.) I am convinced that we don't have a choice but to check the input of asctime() beforehand. I am preparing a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Antoine Pitrou pit...@free.fr added the comment: This is under 3.1, not 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Antoine Pitrou pit...@free.fr added the comment: I can reproduce under Windows 7, 32-bit debug build, with the following line: time.asctime((12345, 1, 0, 0, 0, 0, 0, 0, 0)) Apparently, the debugger tells me that tb-tm_mday is 0. Actually, most of the tb fields are 0 except tm_year (10445), tm_wday (1) and tm_yday (-1). The code is the following: _VALIDATE_RETURN_ERRCODE( ( ( tb-tm_mday = 1 ) ( // Day is in valid range for the month ( ( _days[ tb-tm_mon + 1 ] - _days[ tb-tm_mon ] ) = tb-tm_mday ) || // Special case for Feb in a leap year ( ( IS_LEAP_YEAR( tb-tm_year + 1900 ) ) ( tb-tm_mon == 1 ) ( tb-tm_mday = 29 ) ) ) ), EINVAL ) So I would say the problem is really that the CRT should return EINVAL but instead triggers an assertion, perhaps because of a debug mode thing that we disable manually in 3.2? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I committed a a fix for the test in r87690. If this fixes the buildbot, I'll backport to 2.7 and call it a day for 3.2. For 3.2 a proper year range check will be added to close issue 8013. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Btw, I have a failed assertion in the test suite, with time.ctime(1e12): File: loctim64.c Line: 78 Expression: (*ptime = _MAX__TIME64_T) This is a recent py3k, compiled with VS2005. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Glenn Linderman v+pyt...@g.nevcal.com added the comment: So then David, is your suggestion to use sys.stdin = sys.stdin.detach() and you claim that the Windows-specific hacks are not needed in 3.x land? The are, in 2.x land, I have proven empirically, but haven't been able to test CGI forms very well in 3.x because of this bug. I will test 3.x download without the Windows-specific hack, and report how it goes. My testing started with 2.x and has proceeded to 3.x, and it is not always obvious what hacks are no longer needed in 3.x. Thanks for the info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] sys.path in tests contains system directories
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Apparently this patch isn't sufficient for test___all__. Please create empty _xmlplus directory (without __init__.py) in site-packages directory appropriate for given sys.prefix (e.g. /usr/lib/python3.2/site-packages/_xmlplus for sys.prefix='/usr'). The output of `make test` contains: LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/python-3.2_pre20110102/work/python-3.2_pre20110102: ./python -Wd -E -bb -S -s ./Lib/test/regrtest.py -j1 == CPython 3.2b2+ (py3k:87612, Jan 3 2011, 18:30:27) [GCC 4.4.5] == linux-2.6.34-tuxonice-r8-afta-x86_64-intel-r-_pentium-r-_dual_cpu_t23...@_1.86ghz-with-gentoo-2.0.1 little-endian == /var/tmp/portage/dev-lang/python-3.2_pre20110102/work/python-3.2_pre20110102/build/test_python_2301 [ 1/349] test_grammar [ 2/349] test_opcodes [ 3/349] test_dict [ 4/349] test_builtin [ 5/349] test_exceptions [ 6/349] test_types [ 7/349] test_unittest [ 8/349] test_doctest [ 9/349] test_doctest2 [ 10/349] test___all__ Warning -- sys.path was modified by test___all__ test test___all__ failed -- Traceback (most recent call last): File /var/tmp/portage/dev-lang/python-3.2_pre20110102/work/python-3.2_pre20110102/Lib/test/test___all__.py, line 101, in test_all self.check_all(modname) File /var/tmp/portage/dev-lang/python-3.2_pre20110102/work/python-3.2_pre20110102/Lib/test/test___all__.py, line 28, in check_all raise FailedImport(modname) File /var/tmp/portage/dev-lang/python-3.2_pre20110102/work/python-3.2_pre20110102/Lib/contextlib.py, line 35, in __exit__ next(self.gen) File /var/tmp/portage/dev-lang/python-3.2_pre20110102/work/python-3.2_pre20110102/Lib/test/support.py, line 623, in _filterwarnings raise AssertionError(unhandled warning %s % reraise[0]) AssertionError: unhandled warning {message : ImportWarning(Not importing directory '/usr/lib/python3.2/site-packages/_xmlplus': missing __init__.py,), category : 'ImportWarning', filename : '/var/tmp/portage/dev-lang/python-3.2_pre20110102/work/python-3.2_pre20110102/Lib/xml/__init__.py', lineno : 26, line : None} [ 11/349] test___future__ [ 12/349] test__locale [ 13/349] test_abc -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 3, 2011 at 12:30 PM, Amaury Forgeot d'Arc rep...@bugs.python.org wrote: .. Btw, I have a failed assertion in the test suite, with time.ctime(1e12) This is from r87657. I commented on that change in msg125117. Hopefully a range check will fix that as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes
Changes by Éric Araujo mer...@netwok.org: -- assignee: d...@python - components: -Documentation nosy: +eric.araujo, ron_adam -d...@python stage: - needs patch type: - feature request versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10619] Failed module loading in test discovery loses traceback
Michael Foord mich...@voidspace.org.uk added the comment: This doesn't appear to be true on py3k (traceback.format_exc is used to preserve the original traceback). Need to check on Python 2.7. -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10619 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9977] TestCase.assertItemsEqual's description of differences
Michael Foord mich...@voidspace.org.uk added the comment: In Python 3.2 assertItemsEqual has been replaced with assertCountEqual that has a completely different implementation and error format. The implementation and error output will be backported to the assertItemsEqual method of 2.7 (and to unittest2). Error output: AssertionError: Element counts were not equal: First has 1, Second has 0: ('b', (2, 3)) First has 0, Second has 1: ('x', (2, 3)) -- resolution: - invalid stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9977 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10619] Failed module loading in test discovery loses traceback
Michael Foord mich...@voidspace.org.uk added the comment: Same is true of Python 2.7 - looks like an invalid error report. -- resolution: - invalid stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10619 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9115] test_site: support for systems without unsetenv
Éric Araujo mer...@netwok.org added the comment: Fixed in r87691 (py3k), r87693 (3.1) and r87694 (2.7), thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9115 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The 3.1 buildbot is green: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.1/builds/1591 Committed 2.7 backport in r87692. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] sys.path in tests contains system directories
Antoine Pitrou pit...@free.fr added the comment: I agree with Martin here. Also, since test_site is a special case here, perhaps it could arrange to launch its test cases in a subprocess? I don't think complicating regrtest is the most maintainable approach. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10620] `python -m uniittest` should work with file paths as well as test module names
Changes by Michael Foord mich...@voidspace.org.uk: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10620 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10813] Suppress adding decimal point for places=0 in moneyfmt()
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: d...@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6610] Subprocess descriptor debacle
Georg Brandl ge...@python.org added the comment: Superseded by #10806. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - Subprocess error if fds 0,1,2 are closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6610 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10806] Subprocess error if fds 0,1,2 are closed
Antoine Pitrou pit...@free.fr added the comment: Committed in r87695 (3.2), r87696 (3.1) and r87697 (2.7). -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10806 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.
Antoine Pitrou pit...@free.fr added the comment: Fixed in issue10806. -- nosy: +pitrou resolution: - duplicate status: open - closed superseder: - Subprocess error if fds 0,1,2 are closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7716] IPv6 detection, don't assume existence of /usr/xpg4/bin/grep
Antoine Pitrou pit...@free.fr added the comment: Thank you for the patch! It is committed in r87698 (3.2), r87699 (3.1) and r87700 (2.7). -- nosy: +pitrou resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7716 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10814] assertion failed on Windows buildbots
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: 2.7 buildbot is green as well. Closing. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%202.7 -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] sys.path in tests contains system directories
Matthias Klose d...@debian.org added the comment: The java/openjdk tests allow setting an attribute `samevm' for running a specific test. maybe something like this could be used for some problematic tests which occasionally hang on some buildds? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10805] traceback.print_exception throws AttributeError when exception is None
Antoine Pitrou pit...@free.fr added the comment: Well, under 2.x, print_traceback(None, None, None) would just print None, but I'm not sure that's a supported use case. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10805 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
R. David Murray rdmur...@bitdance.com added the comment: Yes, that is my suggestion. Keep in mind that I haven't looked at the patch or run any tests yet :) If windows-specific hacks are needed to get the binary stream in 3.x, then IMO that's a bug in IO. As far as I know at the moment there's no such bug :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags
Antoine Pitrou pit...@free.fr added the comment: I like the logic of Antoine's patch much better (basing this on whether the listening socket had a timeout). I wonder whether it's correct though if there is a defaulttimeout: shouldn't it then leave the timeout on the socket instead? Indeed, so I'll try to make the patch better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7995 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes
Ron Adam ron_a...@users.sourceforge.net added the comment: No refactoring is needed. The second copies are part of the new server. The old server was depreciated in 3.2 and is supposed to be removed along with the tk panel for 3.3. After that there will only be one of each again. This issue can be used for that purpose. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] sys.path in tests contains system directories
R. David Murray rdmur...@bitdance.com added the comment: Yeah, making a generic way to put specific tests into a subprocess run sounds like a better solution. But... The xml error in test___all__ is due to the fact that test___all__ imports site. So even with the above we'd need to special case site in test___all__. This probably answers the question of why more tests show as changing the environment when run with -S -s, so there are probably other tests that would need to be touched as well. This is becoming a bit of a jerry-rig. Anyone have a better idea? A way to identify the system paths (or, conversely, identify the paths *not* added by site) and delete them in regrtest before running the tests might be cleaner. Or another idea: change site so that it does not execute on import, but instead the machinery that currently imports test site runs a 'setup' function after it does the import. If test_site were then to test the setup function and take care to restore sys.path when it was done, I think things would work as expected if all tests were run with -S -s. Of course, this would break all the custom site.py's out there, so it is probably a non-starter of an idea. In the meantime, test___all__ could perhaps be made more robust in the face of import errors/warnings for those few modules that import from external libraries (xml, logging...anything else?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] sys.path in tests contains system directories
Antoine Pitrou pit...@free.fr added the comment: Le lundi 03 janvier 2011 à 19:37 +, R. David Murray a écrit : Or another idea: change site so that it does not execute on import, but instead the machinery that currently imports test site runs a 'setup' function after it does the import. I'm not sure this means anything :) Importing a module automatically entails running its top-level code (that's the only way it can create functions, classes, etc.). However, I agree that in the default site.py, we could stop calling main() at the top-level and instead call it from the importing code. Of course, this would break all the custom site.py's out there, so it is probably a non-starter of an idea. Are there many of them? And usually, you would take the original site.py and modify it a little. Starting from scratch sounds crazy. In the meantime, test___all__ could perhaps be made more robust in the face of import errors/warnings for those few modules that import from external libraries (xml, logging...anything else?) Well, ideally, these modules should stop importing external libraries implicitly. Give them a dedicated function for that instead, that the user can call if they want to. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7946] Convoy effect with I/O bound threads and New GIL
Changes by Antoine Pitrou pit...@free.fr: -- priority: high - low versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue444582] Finding programs in PATH, adding shutil.which
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue444582] Finding programs in PATH, adding shutil.which
Changes by Antoine Pitrou pit...@free.fr: -- resolution: accepted - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10516] Add list.clear() and list.copy()
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9216] FIPS support for hashlib
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue444582] Finding programs in PATH, adding shutil.which
Éric Araujo mer...@netwok.org added the comment: Sandro: I merely did some bug triage here. I will let interested parties come to an agreement, and Tarek will make the decisions on this request. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10673] multiprocess.Process join method - timeout indistinguishable from success
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5673] Add timeout option to subprocess.Popen
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10563] Spurious newline in time.ctime
Georg Brandl ge...@python.org added the comment: This has now been superseded by the changes made for issue #8013. -- nosy: +georg.brandl resolution: - out of date status: open - closed superseder: - time.asctime segfaults when given a time in the far future ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10563 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] sys.path in tests contains system directories
R. David Murray rdmur...@bitdance.com added the comment: Ah, I hadn't looked closely enough at site.py to realize that the init work was being done by a 'main()' call. Given that, just moving the main call out should be relatively unlikely to break any custom site.py. Worse case would presumably be main() getting called twice, which could be annoying but probably not catastrophic. One would like to think that anyone customizing site.py would redo the customization for a major release and would notice. (And no, I don't know how common customized site.py's are.) Logging already only does its import if you construct an NTEventLogHandler, so that's probably safe enough. Changing xml to require a function call might make some people mad, and other people happy... I wonder if there are any other stdlib modules that do these kinds of external imports. I suppose we can just fix xml and wait for additional bug reports :) I'm not sure either of these changes (site.py-call or xml-activate-xmlplus) should be backported, though, assuming we go ahead with them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9671] test_executable_without_cwd fails: AssertionError: 1 != 47
Sridhar Ratnakumar sridh...@activestate.com added the comment: Sandro Tosi wrote: Sridhar, are you still seeing this error? I still see the error with Python 2.7.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9671 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3548] subprocess.pipe function
Antoine Pitrou pit...@free.fr added the comment: I think this would be more useful if you could pass an optional input string (as in communicate()) and if it returned a (stdout, stderr) tuple. Or perhaps even a (return code, stdout, stderr) tuple; alternately, non-zero return codes could raise an exception. -- nosy: +pitrou versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10227] Improve performance of MemoryView slicing
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - mark.dickinson nosy: +mark.dickinson versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10227 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5840] Thread State and the Global Interpreter Lock section of the docs doesn't cover TLS APIs
Antoine Pitrou pit...@free.fr added the comment: Actually, I don't think the TLS APIs should be documented. They are quite internal, and used only for the PyGILState APIs. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements
Antoine Pitrou pit...@free.fr added the comment: Ping. IDLE dead again? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10079 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7425] [PATCH] Improve the robustness of pydoc -k in the face of broken modules
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8013] time.asctime segfaults when given a time in the far future
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch, issue8013-pre-check.diff, checks for year range before calling system asctime and replaces a call to ctime with a asctime(localtime(..)). -- stage: needs patch - commit review Added file: http://bugs.python.org/file20243/issue8013-pre-check.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1195571] simple callback system for Py_FatalError
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195571 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6664] readlines should understand Line Separator and Paragraph Separator characters
Antoine Pitrou pit...@free.fr added the comment: By design, readlines() only recognizes those characters which are official line separators on various OSes (\n, \r, \r\n). This is important for proper parsing of log files, internet protocols, etc. If you want to split on all line separators recognized by the unicode spec, use str.splitlines(). -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8
Brett Cannon br...@python.org added the comment: This is still failing. I also just confirmed it is also happening for 3.1 and 2.7. -- versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5840] Thread State and the Global Interpreter Lock section of the docs doesn't cover TLS APIs
Antoine Pitrou pit...@free.fr added the comment: They are used by pyOpenSSL and pygobject/pyglib, though :/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue444582] Finding programs in PATH, adding shutil.which
Jan Killian jan.kill...@gmail.com added the comment: Hello All, sorry for lack of communication recently, I'd alos like to see it in 3.2 instead of 3.3, but my time is not as scalable as I wish and I can't run on clouds yet .) I like Trent's module and especially its usefullness via the commandline. I'm also happy about learning on SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\ key, and did reimplement it in my module (with optional static=True parameter to cache the key and parsed path instead of querying and parsing them on each run). For inclusion in shutil, I'd imho prefer the interface chosen here, ie. which_files() returns generator, which() returns first match, or raises IOError(errno.ENOENT), but that's my opinion only. There's also adapted the default extension list to match the given Windows version, which helps resembling the real command execution behavior. The escape+quote chars in path are an interesting problem. I wrote a simple test for them to find out the behavior on Windows XP/7 and Linux, and will do the correct implementation and tests later this week. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jyasskin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7978] SocketServer doesn't handle syscall interruption
Gregory P. Smith g...@krypto.org added the comment: I've added some code comments on http://bugs.python.org/review/7978/show overall I think the patch is right, I pointed out one thing to clean up and I think the unittest can be greatly simplified by using stubbed out mock select.select() instead of fork+signals+sleeping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Glenn Linderman v+pyt...@g.nevcal.com added the comment: David, Starting from a working (but hacked to work) version of http.server and using 3.2a1 (I should upgrade to the Beta, but I doubt it makes a difference at the moment), I modified # if hasattr( sys.stdin, 'buffer'): # sys.stdin = sys.stdin.buffer sys.stdin = sys.stdin.detach() and it all kept working. Then I took out the try: # Windows needs stdio set for binary mode. import msvcrt msvcrt.setmode (0, os.O_BINARY) # stdin = 0 msvcrt.setmode (1, os.O_BINARY) # stdout = 1 msvcrt.setmode (2, os.O_BINARY) # stderr = 2 except ImportError: pass and it quit working. Seems that \r\r\n\r\r\n is not recognized by Firefox as the end of the headers delimiter. Whether this is a bug in IO or not, I can't say for sure. It does seem, though, that 1) If Python is fully replacing the IO layers, which in 3.x it seems to claim to, then it should fully replace them, building on a binary byte stream, not a binary byte stream with replacement of \n by \r\n. The Windows hack above replaces, for stdin, stdout, and stderr, a binary byte stream with replacement of \n by \r\n with a binary byte stream. Seems like Python should do that, on Windows, so that it has a chance of actually knowing/controlling what gets generated. Perhaps it does, if started with -u, but starting with -u should not be a requirement for a properly functioning program. Alternately, the IO streams could understand, and toggle the os.O_BINARY flag, but that seems like it would require more platform-specific code than simply opening all Windows files (and adjusting preopened Windows files) during initialization. 2) The weird CGI processing that exists in the released version of http.server seems to cover up this problem, partly because it isn't very functional, claims alternate semantics (read: non-standard semantics), and invokes Python with -u when it does do so. It is so non-standard that it isn't clear what should or should not be happening. But the CGI scripts I am running, that pass or fail as above, also run on Windows 2.6, and particularly, Unix 2.6, in an Apache environment. So I have been trying to minimize the differences to startup code, rather than add platform-specific tweaks throughout the CGI scripts. That said, it clearly could be my environment, but I've debugged enough different versions of things to think that the Windows hack above is required on both 2.x and 3.x to ensure proper bytestreams and others must think so too, because I found the code by searching on Google, not because I learned enough Python internals to figure it out on my own. The question I'm attempting to address here, is only that 3.x still needs the same hack that 2.x needs, on Windows, to create bytestreams. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6643] Throw away more radioactive locks that could be held across a fork in threading.py
Gregory P. Smith g...@krypto.org added the comment: fwiw a unified fork-and-exec API implemented in C is what I added in Modules/_posixsubprocess.c to at least avoid this issue as much as possible when using subprocess. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6643 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com