[issue10632] multiprocessing generates a fatal error

2011-01-03 Thread Brian Quinlan
Changes by Brian Quinlan br...@sweetapp.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10632 ___ ___ Python-bugs-list

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Etienne Robillard
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

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Etienne Robillard
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

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-01-03 Thread STINNER Victor
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

[issue8013] time.asctime segfaults when given a time in the far future

2011-01-03 Thread STINNER Victor
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

[issue10812] Add some posix functions

2011-01-03 Thread Ross Lagerwall
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

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2011-01-03 Thread Michael Foord
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

[issue10813] Suppress adding decimal point for places=0 in moneyfmt()

2011-01-03 Thread Carsten Grohmann
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)

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2011-01-03 Thread Ross Lagerwall
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

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-01-03 Thread Mher Movsisyan
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

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-01-03 Thread Mher Movsisyan
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

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-01-03 Thread R. David Murray
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

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-01-03 Thread Michael Foord
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 ___

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Antoine Pitrou
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 ] ) =

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread STINNER Victor
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 ___

[issue8013] time.asctime segfaults when given a time in the far future

2011-01-03 Thread STINNER Victor
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

[issue10812] Add some posix functions

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

[issue10815] Write to /dev/full does not raise IOError

2011-01-03 Thread Michal Vyskocil
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

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-03 Thread STINNER Victor
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

[issue10815] Write to /dev/full does not raise IOError

2011-01-03 Thread STINNER Victor
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

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread R. David Murray
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

[issue10806] Subprocess error if fds 0,1,2 are closed

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

[issue10816] test_multiprocessing: unclosed sockets

2011-01-03 Thread STINNER Victor
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

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Etienne Robillard
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

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2011-01-03 Thread Kevin Walzer
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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___

[issue10812] Add some posix functions

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

[issue10502] Add unittestguirunner to Tools/

2011-01-03 Thread Michael Foord
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 -

[issue10816] test_multiprocessing: unclosed sockets

2011-01-03 Thread STINNER Victor
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

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-01-03 Thread Robert Cheng
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,

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-01-03 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10817 ___

[issue10812] Add some posix functions

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

[issue9115] test_site: support for systems without unsetenv

2011-01-03 Thread Zsolt Cserna
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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
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 ] ) =

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___

[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

2011-01-03 Thread STINNER Victor
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

[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

2011-01-03 Thread STINNER Victor
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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Brian Curtin
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,

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-03 Thread STINNER Victor
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 -- ___

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Brian Curtin
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]

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
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

[issue10814] assertion failed on Windows buildbots

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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Antoine Pitrou
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),

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
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. --

[issue10814] assertion failed on Windows buildbots

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

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Glenn Linderman
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

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread Arfrever Frehtes Taifersar Arahesis
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.

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
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.

[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

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

[issue10619] Failed module loading in test discovery loses traceback

2011-01-03 Thread Michael Foord
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

[issue9977] TestCase.assertItemsEqual's description of differences

2011-01-03 Thread Michael Foord
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

[issue10619] Failed module loading in test discovery loses traceback

2011-01-03 Thread Michael Foord
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

[issue9115] test_site: support for systems without unsetenv

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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
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

[issue1674555] sys.path in tests contains system directories

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

[issue10620] `python -m uniittest` should work with file paths as well as test module names

2011-01-03 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10620 ___ ___

[issue10813] Suppress adding decimal point for places=0 in moneyfmt()

2011-01-03 Thread Raymond Hettinger
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 ___

[issue6610] Subprocess descriptor debacle

2011-01-03 Thread Georg Brandl
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

[issue10806] Subprocess error if fds 0,1,2 are closed

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

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

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

[issue7716] IPv6 detection, don't assume existence of /usr/xpg4/bin/grep

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

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
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

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread Matthias Klose
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? --

[issue10805] traceback.print_exception throws AttributeError when exception is None

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

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread R. David Murray
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

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

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

[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

2011-01-03 Thread Ron Adam
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

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread R. David Murray
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

[issue1674555] sys.path in tests contains system directories

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

[issue7946] Convoy effect with I/O bound threads and New GIL

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

[issue444582] Finding programs in PATH, adding shutil.which

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

[issue444582] Finding programs in PATH, adding shutil.which

2011-01-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: accepted - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list

[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)

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

[issue10516] Add list.clear() and list.copy()

2011-01-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___ ___

[issue9216] FIPS support for hashlib

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

[issue444582] Finding programs in PATH, adding shutil.which

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

[issue10673] multiprocess.Process join method - timeout indistinguishable from success

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

[issue5673] Add timeout option to subprocess.Popen

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

[issue10563] Spurious newline in time.ctime

2011-01-03 Thread Georg Brandl
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

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread R. David Murray
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

[issue9671] test_executable_without_cwd fails: AssertionError: 1 != 47

2011-01-03 Thread Sridhar Ratnakumar
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

[issue3548] subprocess.pipe function

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

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

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

[issue10227] Improve performance of MemoryView slicing

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

[issue5840] Thread State and the Global Interpreter Lock section of the docs doesn't cover TLS APIs

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

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

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

[issue7425] [PATCH] Improve the robustness of pydoc -k in the face of broken modules

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

[issue8013] time.asctime segfaults when given a time in the far future

2011-01-03 Thread Alexander Belopolsky
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:

[issue1195571] simple callback system for Py_FatalError

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

[issue6664] readlines should understand Line Separator and Paragraph Separator characters

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

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2011-01-03 Thread Brett Cannon
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

[issue5840] Thread State and the Global Interpreter Lock section of the docs doesn't cover TLS APIs

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

[issue444582] Finding programs in PATH, adding shutil.which

2011-01-03 Thread Jan Killian
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

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2011-01-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jyasskin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10238 ___ ___ Python-bugs-list mailing

[issue7978] SocketServer doesn't handle syscall interruption

2011-01-03 Thread Gregory P. Smith
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()

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Glenn Linderman
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'): #

[issue6643] Throw away more radioactive locks that could be held across a fork in threading.py

2011-01-03 Thread Gregory P. Smith
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

  1   2   >