[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

[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

[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

[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

[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

[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 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 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
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=

[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

[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 Daniel Stutzbach
Daniel Stutzbach added the comment: Looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[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

[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

[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

[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

[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 Trundle
Trundle added the comment: This was changed due to issue #4050. -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing

[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 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

[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

[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

[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 ___

[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 ___

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Fix _internal_poll() on Windows: r81179 (trunk), r81181 (2.6), r81181 (3.x), r81182 (3.1). -- resolution: -> fixed status: open -> closed ___ Python tracker _

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

2010-05-14 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Fri, May 14, 2010 at 3:25 PM, Mark Dickinson wrote: > The patch looks good.  Just one issue: I think the overflow check for > num_operands * last_bit is bogus.  It's possible for the product to overflow > and still end up being less than num_operands.  H

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

2010-05-14 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: +brett http://svn.python.org/view/python/trunk/Lib/subprocess.py?r1=80496&r2=81154 -- nosy: +brett.cannon ___ Python tracker ___ __

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

2010-05-14 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : This was a regression due to a commit made less than 2 days ago. make: [build_pywin32] running 'F:\as\apy\build\pyhg_trunk-win64-x64-hgtip27-rrun \python\PCbuild\amd64\python.exe setup.py build' in 'build\pyhg_trunk-win64-x64- hgtip27-rrun\pywin32' Traceb

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2010-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is there any reason why you reported zlibmodule.c separately in #8650 > (other than maybe finding that first), Because zlibmodule.c has more 64-bitness issues than just PY_SSIZE_T_CLEAN (see bug description). > Should this supersede that? No. --

[issue8663] Failed compile in a non-ASCII path

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: setup_stdout_backslashreplace.patch implements point (a). I don't know which solution is better. This issue is not specific to compiling CPython, other programs may fail in non-ASCII paths and so solution (b) is maybe better. -- Added file: http://bu

[issue8663] Failed compile in a non-ASCII path

2010-05-14 Thread Tarek Ziadé
Tarek Ziadé added the comment: I'll look at that asap. Although, all these patchs should have some tests demonstrating the bugs -- ___ Python tracker ___ ___

[issue8663] Failed compile in a non-ASCII path

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Conditions to reproduce the bug: - non ASCII directory - don't use make -j N (no MAKEFLAGS environment variable) - write make output into a pipe, eg. make 2>&1|cat My 2 last patches are not enough: there are other functions writing non-ASCII strings to log

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that this is a real, and disconcerting problem, and not a failure to read the doc, no apology needed. At least one solution is recorded here for anyone else hitting the same problem. If anyone thinks there should be a change to the sqlite3 module, they

[issue2142] difflib.unified_diff(...) produces invalid patches

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: Marking as a feature request: I think this is somewhere on the line between bugfix and new feature, but either way 2.7 is too close to release to start messing with something that isn't really all that broken. For 2.7 (and 2.6, 3.1), there's also the option

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-14 Thread Simon Jagoe
Simon Jagoe added the comment: Sorry for the waste of time. I have compiled Python 2.6.5 against sqlite3 3.6.22 (Lucid version) and 3.6.16-1ubuntu1 (Karmic version). The test I posted originally fails with sqlite3 3.6.22 and passes with sqlite3 3.6.16-1ubuntu1, so it would appear to be a chan

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

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: > it's the *size* of the small bitfield *smallest -- ___ Python tracker ___ ___ Python-bugs-list ma

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

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: One other note: I find the bit numbering in find_last_set_bit peculiar: isn't the least significant bit usually bit 0? (Well, okay some people number the msb 0, but that's just weird. :) I know the ffs and fls functions also start their bit numbering at o

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The next question is whether there is any bug in the Python interface module or whether c.execute(s,t) is properly passing s and t to sqlite3 for processing and converting the return to a Python tuple. If the latter, then this should be closed as invalid (bec

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

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: Daniel, sorry: I spent so long writing that last message that I didn't read your update until now. The new patch looks fine; same caveat about the overflow check as before. Let me know when you want me to apply this. --

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

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: The patch looks good. Just one issue: I think the overflow check for num_operands * last_bit is bogus. It's possible for the product to overflow and still end up being less than num_operands. How about: if (num_operands <= BITS_IN_LONG && num_operands * la

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there any reason why you reported zlibmodule.c separately in #8650 (other than maybe finding that first), and for 4 versions there versus 1 here? Should this supersede that? -- ___ Python tracker

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

2010-05-14 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I made a few minor updates to the patch. It redefines partial_product to product(range(n, m, 2)), which saved me a few operations and is more Pythonic than what I had before. :-) (Not quite what Alexander was after, but it's a step in the right direction.

[issue8709] mention explicitly Windows support for os.devnull

2010-05-14 Thread Éric Araujo
Éric Araujo added the comment: os.devnull is a string, so “pydoc os.devnull” will tell you about strings, and “help(os.devnull)” will be evaluated to “help('/dev/null')” which won’t match any topic. Same thing with os.sep and other module data; the doc is in the module’s docstring. --

[issue8649] Py_UNICODE_* functions are undocumented

2010-05-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8709] mention explicitly Windows support for os.devnull

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given the mention of the posix example, I agree. The issue applies to 2.6 and 3.2 (that I checked) and so I assume to 2.7 and 3.1 also. There is no doc string for devnull, which I presume should be in ntpath. >>> help(os.devnull) no Python documentation found

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

2010-05-14 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Removed file: http://bugs.python.org/file17338/factorial.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-14 Thread angri
angri added the comment: This thread contains some observations of versions affected: http://groups.google.com/group/python-sqlite/browse_thread/thread/a53a5e5282e29318 -- ___ Python tracker __

[issue8707] Duplicated document in telnetlib.

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Which is to say, the entire second paragraph beginning with 'number' should be deleted. The same is true for 2.6, where it is also section 20.14, 3.1 (20.17), and 3.2 (19.17). Good catch. Thanks for reporting. -- keywords: +easy nosy: +tjreedy versio

[issue8680] Add a sandbox in Distutils2

2010-05-14 Thread Éric Araujo
Éric Araujo added the comment: What kind of sandbox should that be? Best-effort, meaning it replaces some functions to provide the dry-run feature, or an iron-clad sandbox that blocks malicious code from breaking out? -- nosy: +merwok versions: +Python 2.5, Python 2.6, Python 2.7, Pyt

[issue8679] write a distutils to distutils2 converter

2010-05-14 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue8668] add a 'develop' command

2010-05-14 Thread Éric Araujo
Éric Araujo added the comment: I have started to draft a similar proposal¹ but it seems that the wiki is not a communication medium as good as the bug tracker or the mailing lists (probably because of technical issues such as the lack of watchlist and e-mail notifications as much as because o

[issue8694] python3 FAQ mentions unicode()

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, the faq entry has example code like "value = unicode(value, "utf-8")" This whole section now applies when 'value' is a bytes or bytearray object and one calls str(value). For portability, one should in 2.6/7 use unicode strings as much as possible and t

[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2010-05-14 Thread Éric Araujo
Éric Araujo added the comment: The older exception catching syntax should not be promoted but could be mentioned, I agree. Adding a paragraph explaining why it was changed would do the trick. Regarding the non-obviousness of which Python version the docs apply to, it is indeed mentioned on t

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-14 Thread Simon Jagoe
Simon Jagoe added the comment: I will try to test this with the different combinations of python and sqlite versions. -- ___ Python tracker ___ _

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: You appear to be saying that the same code gives different results on 2.6.4 and 2.6.5. Correct? If so, did the version of sqlite change? In any case, 3.1.2 on WinXP consistently gives (2,) >>> sqlite3.version '2.4.1' -- nosy: +tjreedy ___

[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-05-14 Thread Tim Peters
Tim Peters added the comment: Terry asks: > is it also guaranteed that quick_ratio() <= real_quick_ratio() Nope! The docs don't say that, so it's not guaranteed. It's not the _intent_ of the code that it be true, either. The only point to quick_ratio() and real_quick_ratio() is speed. ---

[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Tim. Drop the zero-info glosses. For real_quick_ratio(), "Return an upper bound on ratio() even more quickly." should be sufficient (assuming that it *is* always quicker. Just curious, The descriptions say ratio() <= quick_ratio() and ratio() <

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: And the curses module was made PY_SSIZE_T_CLEAN in r81085 (a very simple change). -- ___ Python tracker ___ ___

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

2010-05-14 Thread Bill Janssen
Bill Janssen added the comment: It's fairly easy to create a restricted process tree for testing. ssh into a Mac which has no one logged into the console, from another machine, and use that connection to launch an xterm or Xemacs window to the other machine. Then log out of the ssh session.

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark just fixed audioop in #8675 -- nosy: +tjreedy ___ Python tracker ___ ___ Python-bugs-list maili

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: pakal wrote a patch fixing Windows regression: see issue #8717. -- ___ Python tracker ___ ___ Python

[issue8717] Subprocess.py broken in trunk

2010-05-14 Thread Pascal Chambon
New submission from Pascal Chambon : There seems to have been some broken commit on subprocess.py in trunk - the moduel can't be imported due to unexisting argument defaults. Here is a very quick patch, but more inquiry migh tbe necessary to find out what happened. -- files: broken_su

[issue8717] Subprocess.py broken in trunk

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: The regression was introduced by r81154: issue #5099. -- nosy: +haypo ___ Python tracker ___ ___ Pyt

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

2010-05-14 Thread Bill Janssen
Bill Janssen added the comment: [More info from Ronald Oussoren] This is a bug in Tk: >>> root = Tkinter.Tk() Thu May 13 20:45:13 Rivendell.local python[84887] : kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged. _RegisterApplication(), FAILED TO esta

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

2010-05-14 Thread Jesse Noller
Jesse Noller added the comment: I pretty much agree with (b) an argument - your gut instinct is correct - there's a long standing thread in python-dev which pretty much solidified my thinking about whether or not we need this (we do). Any patch has to be backwards compatible by the way, it c

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

2010-05-14 Thread Bill Janssen
New submission from Bill Janssen : test_tk fails on OS X if test is run from a daemon process without the privilege to access the window server, say a buildbot slave without anyone logged in to the console. The Tk support needs to check whether it has access rights to the window server before

[issue8649] Py_UNICODE_* functions are undocumented

2010-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: If, for this and your previous two issues, you could add a suggestion as to precisely where you would make an addition and what minimally adequate text you would add (even unformatted ascii text in a message) that is consistent with surrounding style, action

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

2010-05-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I still believe, however that an iterative version can benefit .. s/iterative/recursive/ -- ___ Python tracker ___

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

2010-05-14 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Jesse, it's great to learn it's on your wish list too! Should I design the patch so that (a) there is some global in the module that needs tweaking to choose the child creation technique, or (b) that an argument to the Process() constructor forces a ful

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

2010-05-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I agree, recursive version of partial_product is much simpler to follow. While allocation of all numbers can be avoided in iterative version, doing so would further complicate code with little benefit. I still believe, however that an iterative version

[issue6419] Broken test_kqueue.py on OpenBSD

2010-05-14 Thread Stefan Krah
Stefan Krah added the comment: Mark, thanks. - The patch is good on OpenBSD-4.5-i386-Celeron, but I get additional failures on OpenBSD-4.7-beta-amd64-QEMU. This could be the result of running a beta under qemu. Henry, could you confirm if the patch works on amd64/OpenBSD-4.7-stable? ===

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-14 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: In addition to skipping the tests, would it also make sense to document these known limitations of Python threading on OpenBSD somewhere that end users might see it? -- ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-14 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17268/distutils_spawn_toascii.patch ___ Python tracker ___ ___ Python-bugs

[issue8663] Failed compile in a non-ASCII path

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: New patch: use sys.stdout.encoding instead of ASCII. (If stdout is not a TTY, sys.stdout.encoding is ASCII.) -- Added file: http://bugs.python.org/file17342/distutils_spawn_log.patch ___ Python tracker

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

2010-05-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17312/factorial3.py ___ Python tracker ___ ___ Python-bugs-list mail

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

2010-05-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17310/factorial.py ___ Python tracker ___ ___ Python-bugs-list maili

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Python3 compilation fails on Windows: File "...\3.x.bolen-windows\build\lib\subprocess.py", line 911, in Popen _WaitForSingleObject=WaitForSingleObject, NameError: name 'WaitForSingleObject' is not defined http://www.python.org/dev/buildbot/3.x.stabl

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

2010-05-14 Thread Jesse Noller
Jesse Noller added the comment: This is on my wish list; but I have not had time to do it. Patch welcome. -- ___ Python tracker ___ __

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

2010-05-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: I opened a separated issue for the new function PyUnicode_EncodeFSDefault(): #8715. -- ___ Python tracker ___ _

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-14 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17251/pyunicode_encodefsdefault.patch ___ Python tracker ___ ___ Python-bu

[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-14 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17340/pyunicode_encodefsdefault-2.patch ___ Python tracker ___ ___ Python-

[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Ooops, I attached the wrong version of the patch. Version 3 changes the documentation (Encodes => Encode). -- Added file: http://bugs.python.org/file17341/pyunicode_encodefsdefault-3.patch ___ Python tracker

[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-14 Thread STINNER Victor
New submission from STINNER Victor : PyUnicode_EncodeFSDefault() is the opposite of PyUnicode_DecodeFSDefault(AndSize)() and is similar to the new function os.fsencode(). As you can see in the patch, it simplifies many functions. /* Encodes a Unicode object to Py_FileSystemDefaultEncoding with

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2010-05-14 Thread Stefan Krah
New submission from Stefan Krah : On OpenBSD, SIGINT handling in the REPL is delayed until further input: Python 2.7b2+ (trunk:81162, May 14 2010, 14:47:52) [GCC 3.3.5 (propolice)] on openbsd4 Type "help", "copyright", "credits" or "license" for more information. >>> <= here Ctrl-C is pressed

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

2010-05-14 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes : The "multiprocessing" module uses a bare fork() to create child processes under Linux, so the children get a copy of the entire state of the parent process. But under Windows, child processes are freshly spun-up Python interpreters with none of the d

[issue8711] Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Commited: r81168 (py3k), r81169 (3.1). I also added the paragraph titles to Python2: r81166 (trunk) and r81167 (2.6). -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue8711] Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your remarks: updated patch. -- Added file: http://bugs.python.org/file17339/unicode_doc-2.patch ___ Python tracker ___ _

[issue8705] shutil.rmtree with empty filepath

2010-05-14 Thread Dan Koch
Dan Koch added the comment: Here's the session printout. Desktop files under Vista still get deleted despite the exception. Does not occur on Fedora 12 or Mac OS X. I can code around it by testing for a blank filepath, but it was a surprise. C:\Users\ko5>python Python 2.6.4 (r264:75708, Oct 2

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

2010-05-14 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Attached is an updated patch. In addition to the code cleanup and bug fix suggestions, it includes a new base-case for factorial_partial_product. Instead of: if (n >= m) return n if (n + 2 == m) return n*m otherwise divide-and-conquer It now does:

[issue8711] Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()

2010-05-14 Thread Éric Araujo
Éric Araujo added the comment: In this case, it was a verb (a gerund form). -- title: Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize() -> Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize() __

[issue6419] Broken test_kqueue.py on OpenBSD

2010-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, please do apply the patch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8711] Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()

2010-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is it better to say “for encoding x, use y” or “to encode x, > use y”? The latter, IMO. "Encoding" is also a noun. -- nosy: +pitrou ___ Python tracker __

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks reasonable. Perhaps you should add a reference to the relevant OpenBSD bug number(s) or URL(s), if any. -- nosy: +exarkun, mark.dickinson, pitrou ___ Python tracker ___

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

2010-05-14 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Removed file: http://bugs.python.org/file17300/factorial.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-05-14 Thread R. David Murray
R. David Murray added the comment: The patches look good, so yes, please apply them. As for closing the issue...if the failures are no longer happening on the buildbots, then yes :) -- ___ Python tracker

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-14 Thread Stefan Krah
New submission from Stefan Krah : [Added OpenBSD Python port maintainers to the nosy list.] I've identified a number of tests that all pass when Python is compiled without threads, but fail otherwise. The failures are probably caused by libpthread issues in OpenBSD, as described in this patch:

[issue8711] Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()

2010-05-14 Thread Éric Araujo
Éric Araujo added the comment: The bulk of the patch seems good to me, with some minor remarks: - You haven’t used title case consistently in all section titles. - I’d just say “wchar_t Support” in a title, deleting “for platforms which support it”. - You could mark up “bytes” so that users get

[issue6610] Subprocess descriptor debacle

2010-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would the test still be correct if it didn't close stderr? I feel closing stderr is very bad from a debuggability standpoint. -- ___ Python tracker ___

[issue8711] Document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()

2010-05-14 Thread STINNER Victor
New submission from STINNER Victor : Attached patch document PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize() in Doc/c-api/, and fix comment in Include/unicodeobject.c (remove reference to bytearray, and specify that surrogateescape is used). The patch adds also titles to gr

  1   2   >