[issue7076] Documentation add note about SystemRandom

2010-01-21 Thread Shawn Ligocki
Shawn Ligocki added the comment: ping Please look at the last patch. It's very simple and would be helpful. This is not very complicated and shouldn't take months to consider. -- ___ Python tracker __

[issue7749] pydoc error - "No module named tempfile"

2010-01-21 Thread Gabriel Genellina
Gabriel Genellina added the comment: This happens to be a duplicate of issue #7328 -- pydoc used to remove the Python standard library from sys.path (!) when run with -m Fixed in r76312 (2.7). I think the fix should be backported to 2.6 @gib: you may patch your Python 2.5 installation yoursel

[issue7753] newgil backport

2010-01-21 Thread Neil Schemenauer
Neil Schemenauer added the comment: Looks like the 2.7 patch has a spurious change to /Lib/unittest/runner.py. -- nosy: +nascheme ___ Python tracker ___ _

[issue7749] pydoc error - "No module named tempfile"

2010-01-21 Thread Gib Bogle
Gib Bogle added the comment: Importing tempfile from within python does not produce an error. -- ___ Python tracker ___ ___ Python-bug

[issue7749] pydoc error - "No module named tempfile"

2010-01-21 Thread Gabriel Genellina
Gabriel Genellina added the comment: On Windows, trying with different Python versions: D:\temp>python24 -m pydoc sys [works as expected] D:\temp>python25 -m pydoc sys No module named tempfile D:\temp>python26 -m pydoc sys No module named tempfile D:\temp>python27 -m pydoc sys [works as expe

[issue7753] newgil backport

2010-01-21 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Brian Curtin
Brian Curtin added the comment: Can you add your test to Lib/test/test_pdb.py? If the test fails the "hello world" script won't be removed, it won't make it to os.remove(). You'll need to make sure the file gets deleted in any case. Could use a temporary file. Can you condense the cmd stuff

[issue6457] subprocess.Popen.communicate can lose data from output/error streams when broken input pipe occures

2010-01-21 Thread Mike Crute
Mike Crute added the comment: Bump. Updated the patch against trunk. -- nosy: +mcrute Added file: http://bugs.python.org/file15969/broken_pipe.patch ___ Python tracker ___ __

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-21 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) nosy: +mark.dickinson priority: -> normal type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker _

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2010-01-21 Thread Jesse Noller
Jesse Noller added the comment: I'm working on this now; I'm going to need to port the patch to trunk before moving forward with it. Shouldn't take me long. -- ___ Python tracker __

[issue7753] newgil backport

2010-01-21 Thread Jesse Noller
Changes by Jesse Noller : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: The attached test-case identifies the failure mode (and verifies that the proposed fix corrects the issue). -- Added file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker

[issue7658] OS X pythonw.c compile error with 10.4 or earlier deployment target: no spawn.h

2010-01-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: > RONALD: I've committed a fix for this in r77585, please test. Verified on Tiger with 10.4u SDK. -- ___ Python tracker ___ ___

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-21 Thread Mike Clark
New submission from Mike Clark : Good behavior: >>> 0.0**0.0 1.0 >>> Bad behavior: >>> Decimal('0.0')**Decimal('0.0') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/decimal.py", line 2101, in __pow__ return context._raise_error(InvalidOperation, '0 ** 0'

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Brian Curtin
Brian Curtin added the comment: Works for me, repr will escape the slash. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I suspect this patch may fix the problem. I haven't yet had time to test it. Index: Lib/pdb.py === --- Lib/pdb.py (revision 77683) +++ Lib/pdb.py (working copy) @@ -1200,7 +1200,7 @@ se

[issue7753] newgil backport

2010-01-21 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review priority: -> high stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm changing the title back to the original title. I don't believe the problem is reproducible using execfile. That is, if a properly-escaped path is passed to execfile, it works fine. So I believe the problem lies between when pdb takes control and where ex

[issue7750] IOError in execfile with backslash in path

2010-01-21 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- title: IOError when launching script under pdb with backslash in script path -> IOError in execfile with backslash in path ___ Python tracker ___

[issue7753] newgil backport

2010-01-21 Thread Ross Cohen
New submission from Ross Cohen : This is a backport of the newgil work to the 2.7 branch (otherwise known as trunk.) Patch is against r77678. Created by diffing r76193 (last in the newgil branch) against r76189 and applying the result. Generally applied cleanly and it looked as though only 1 r

[issue7752] Add support for Digest authentication session (reuse nonces)

2010-01-21 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review priority: -> normal stage: -> test needed versions: +Python 3.2 ___ Python tracker ___ _

[issue7751] urllib.urlopen("///C|/foo/bar/spam.foo") IOError: [Errno 22]

2010-01-21 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review priority: -> normal stage: -> test needed type: crash -> behavior ___ Python tracker ___ ___

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Brian Curtin
Brian Curtin added the comment: You can see the same thing by doing execfile(".\test.py"), which is what pdb makes under the hood, then bdb exec's it. -- nosy: +brian.curtin priority: -> normal stage: -> test needed type: -> behavior ___ Python t

[issue7752] Add support for Digest authentication session (reuse nonces)

2010-01-21 Thread Manuel Muradás
New submission from Manuel Muradás : Description: As described in issue [2202], for each request we make, we get a new [401|407] message with a new nonce (depending if we're talking about a proxy with digest authentication or a web server). Then we generate another authenticated request us

[issue7751] urllib.urlopen("///C|/foo/bar/spam.foo") IOError: [Errno 22]

2010-01-21 Thread Christoph Gohlke
New submission from Christoph Gohlke : On Windows 7, Python 2.6 raises an IOError when opening a valid file URL with urllib.urlopen(). A patch to the nturl2path.url2pathname function is attached. It replaces '%7C' by '|' in the url at the top of the url2pathname function. Python 2.6.4 (r264:75

[issue7749] pydoc error - "No module named tempfile"

2010-01-21 Thread Gib Bogle
Gib Bogle added the comment: R. David Murray wrote: > R. David Murray added the comment: > > Under 2.5 this could be due to various weird issues with your python path and > the modules on it. Try running python from a clean directory and specifying > the -E flag and see if the behavior chan

[issue7749] pydoc error - "No module named tempfile"

2010-01-21 Thread R. David Murray
R. David Murray added the comment: Under 2.5 this could be due to various weird issues with your python path and the modules on it. Try running python from a clean directory and specifying the -E flag and see if the behavior changes, and/or try importing tempfile at the python prompt and see

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
New submission from Jason R. Coombs : Under Python 2.6.4 64-bit on Windows 7 64-bit, I found that when launching a script under the debugger, if backslashes were in the script pathname, they were not interpreted correctly by the interpreter. For example, create a simple test script, "t-hellowo

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2010-01-21 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2010-01-21 Thread Manuel Muradás
Manuel Muradás added the comment: Here is a patch for supporting MD5-sess, following RFC2617 specification. Some comments/warnings: * I've only tested the patch against IIS 6.0. I don't know about other servers supporting MD5-sess. * IIS 6.0 expects the User Agent to send the URI (in the Aut

[issue7749] pydoc error - "No module named tempfile"

2010-01-21 Thread Brian Curtin
Brian Curtin added the comment: I'm not seeing this on 2.5, 2.6, or trunk. -- components: +Extension Modules nosy: +brian.curtin priority: -> normal stage: -> test needed title: pydoc error -> pydoc error - "No module named tempfile" ___ Python tra

[issue7749] pydoc error

2010-01-21 Thread Gib Bogle
Gib Bogle added the comment: Hi Eric, I'm using Python 2.5.4 on Windows XP. I installed pythonxy, which installed 2.5.4. I also have PyQt4.4 installed. I haven't touched anything in the lib directory, as far as I know. A poster on comp.lang.python finds the command works on one machine, b

[issue7749] pydoc error

2010-01-21 Thread Éric Araujo
Éric Araujo added the comment: Hello I can’t reproduce your bug. Please specify exact Python version, how you installed it, whether you did something unusual with the lib directory, and any other useful information. Kind regards -- nosy: +Merwok

[issue7749] pydoc error

2010-01-21 Thread Gib Bogle
New submission from Gib Bogle : >python -m pydoc sys gives No module named tempfile -- messages: 98111 nosy: gib severity: normal status: open title: pydoc error type: behavior versions: Python 2.5 ___ Python tracker

[issue7746] Nit: Extra comma in itertools doc

2010-01-21 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r77675 (trunk), r77676 (release26-maint), r77677 (py3k) and r77678 (release31-maint). -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> normal resolution: -> fixed stage: -> committed/rejected status: open -> closed v

[issue7748] unicode supported in distutils register but not distutils upload

2010-01-21 Thread dholth
New submission from dholth : # -*- encoding: utf-8 -*- # Will not 'python setup.py upload': setup(name='acute_e', version='0.1', description=u'é') It looks like someone fixed this for register but forgot to copy it into upload: +# Build up the MIME payload for the POST data bou

[issue7745] Remove "isatty" check when setting sys.std[in|out|err] encoding to that of locale

2010-01-21 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7745] Remove "isatty" check when setting sys.std[in|out|err] encoding to that of locale

2010-01-21 Thread Dave Malcolm
Changes by Dave Malcolm : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7747] Function variable wrongly reported unassigned

2010-01-21 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-01-21 Thread STINNER Victor
STINNER Victor added the comment: @Ezio: Your patch leaks a reference: PyUnicode_FromString(...) is not destroyed (Py_DECREF) on success. -- ___ Python tracker ___ _

[issue7267] format method: c presentation type broken

2010-01-21 Thread STINNER Victor
STINNER Victor added the comment: See also issue #7649. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7544] Fatal error on thread creation in low memory condition

2010-01-21 Thread STINNER Victor
STINNER Victor added the comment: Sum up of my patch: * it pass all test_thread*.py tests (tested with in pydebug mode) * it preallocates the thread state in the parent thread to be able to raise an error with PyErr_NoMemory() instead of Py_FatalError() * PyThreadState_Prealloc() doesn't ca

[issue5905] strptime fails in non-UTF locale

2010-01-21 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the error. I tried locales fr_FR.iso88591 and fr_fr.iso885...@euro (fr...@euro), but the example works correctly. Should the terminal use the specified locale? My terminal uses fr_FR.utF8 locale. Should set_locale() be called before lo

[issue7747] Function variable wrongly reported unassigned

2010-01-21 Thread Adrian May
Adrian May added the comment: OK, Thanks. Sorry for the hassle. Adrian. -- type: behavior -> compile error ___ Python tracker ___ ___

[issue4221] inconsistent exception from int is confusing

2010-01-21 Thread STINNER Victor
STINNER Victor added the comment: See also issue #7710. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub