[issue8717] Subprocess.py broken in trunk

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Thank you for your patch: I closed #5099 regression. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue8718] subprocess: NameError: name 'WaitForSingleObject' is not def

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of #5099 (and #8717). It should be fixed now. -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6610] Subprocess descriptor debacle

2010-05-14 Thread Yaniv Aknin
Yaniv Aknin added the comment: I think if the test is conducted without closing stderr, it will only check that stdin/stdout are handled correctly (you could assume that if one handled stdin/stdout correctly, they did the same with stderr). However, since I've used a context manager (_NoStand

[issue8719] buildbot: segfault on FreeBSD (signal 11)

2010-05-14 Thread STINNER Victor
New submission from STINNER Victor : There are segfaults on x86 FreeBSD 7.2 3.x. It looks like it's a regression introduced by r80876. --- Build 556: ... test_coding test_hash test_strtod test_float test_runpy *** Signal 11 Build 555: ... test_int test_smtplib test_asynchat test_runpy *** Sig

[issue8720] undo findsource regression/change

2010-05-14 Thread holger krekel
New submission from holger krekel : Somewhere between python 3.0.1 and 3.1.2 the behaviour of inspect.findsource changed: it does not find the source code anymore for a code object whose filename/source is in the linecache.cache because instead of the previous:: file = getsourcefile(object

[issue8692] Use divide-and-conquer for faster factorials

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, here's what I'm planning to commit (tomorrow), in case anyone wants to give it one last check. I've added some comments half-explaining the algorithm used (just in case the referenced URL goes out of existence). I made a couple of other minor changes

[issue8720] undo findsource regression/change

2010-05-14 Thread Trundle
Trundle added the comment: This was changed due to issue #4050. -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Notes for myself: - "Encodes" and "fallback" in .h documentation => "Encode", "fall back" - bootstrap failure on Windows: import did use default error handler, it uses surrogateescape error handler, but PyUnicode_EncodeString() doesn't have codec "fast-path

[issue8720] undo findsource regression/change

2010-05-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +r.david.murray versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8720] undo findsource regression/change

2010-05-14 Thread R. David Murray
R. David Murray added the comment: As I remember it, #4050 was in turn caused by a change elsewhere in the codebase to using linecache where it wasn't used before. Regardless, though, the problem is that findsource doesn't produce an error when called on a binary module. It thinks it found th

[issue3605] Py_FatalError causes infinite loop

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: I fixed the new test for Windows: r81183 (py3k). The new test failed on Windows because of the different newline characters: Traceback (most recent call last): File "...\test_capi.py", line 49, in test_no_FatalError_infinite_loop b'Fatal Python error:' A

[issue8716] test_tk fails on OS X if run from buildbot slave daemon -- crashes Python

2010-05-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8692] Use divide-and-conquer for faster factorials

2010-05-14 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue8692] Use divide-and-conquer for faster factorials

2010-05-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Mark, It is always a pleasure to read your algorithm descriptions! Just a few comments: - It would be nice if a pure python implementation would make it somewhere in the code base. Maybe it can be placed in comments in C file or added to the test module

[issue8692] Use divide-and-conquer for faster factorials

2010-05-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Some more ... - Mark's notes talk about "odd-part-of-factorial". It would be clearer if r variable in math_factorial() was called odd_part. - I would also rename nminusnumbits to ntwos or something else that explains what it is rather than how it is com

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-14 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : [stor...@nas0 ~]$ python2.6 -c "import urlparse; print urlparse.urlsplit('http://www.famfamfam.com](http://www.famfamfam.com/', 'http', True)" SplitResult(scheme='http', netloc='www.famfamfam.com](http:', path='//www.famfamfam.com/', query='', fragment=

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-14 Thread R. David Murray
R. David Murray added the comment: Why do you think this is a regression? It looks to me like the error message is accurate. (A ']' is valid in the netloc part only when specifying an IPv6 address). -- nosy: +orsenthil, r.david.murray resolution: -> invalid status: open -> pending

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-14 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Shouldn't `urlparse` accept non-IPv6 URLs as well - as it always used to - when these URLs can have a single ']'? -- status: pending -> open ___ Python tracker ___

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-14 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: For eg., the following URLs seems to load just fine in my browser: http://www.google.com/search?q=foo&b=df]d&qscrl=1 And, as is the case with the django-cms PyPI page (see referred issue link in msg), such URLs seemed to be practically used in a few pla

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-14 Thread R. David Murray
R. David Murray added the comment: Python 2.7b2+ (trunk:81129, May 12 2010, 19:05:17) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from urlparse import urlsplit >>> urlsplit('http://www.google.com/search?q=foo&b=df]d&qscrl=1', 'http', True) Sp

[issue8722] Documentation for __getattr__

2010-05-14 Thread Paul Davis
New submission from Paul Davis : The docs for __getattr__ in the object model section could be more specific on the behavior when a @property raises an AttributeError and there is a custom __getattr__ defined. Specifically, it wasn't exactly clear that __getattr__ would be invoked after a @pro

[issue8722] Documentation for __getattr__

2010-05-14 Thread Paul Davis
Paul Davis added the comment: I should mention, in example.py, it wasn't immediately clear that "print f.bing" would actually print instead of raising the AttributeError. As in, I had a property raising an unexpected error that happend to be an AttributeError. If its not an attribute error, t

[issue8713] multiprocessing needs option to eschew fork() under Linux

2010-05-14 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8723] IDLE won't start import os error

2010-05-14 Thread James Morgan
New submission from James Morgan : Hi, For some reason I have recently lost the ability to open IDLE for python 2.6.2. I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load the python command prompt

<    1   2