[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2009-12-13 Thread Pete Hunt
New submission from Pete Hunt : When pickling a proxy object (such as a list) created on a client, an exception is thrown. Example attached. Python 2.6.4 Mac OS X 10.6 p -- components: Library (Lib) files: multiprocessing_bug.py messages: 96371 nosy: peterhunt severity: normal status:

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Lennart Regebro
Lennart Regebro added the comment: Yes, x.y.Exception and a.b.Exception should match. I just realized I didn't add an explicit test for that, but maybe that's not strictly necessary. -- ___ Python tracker _

[issue7388] Documentation: capitalizations of the word 'python' needed when used as a name

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7500] doc: add warnings for FAQ which may not be accurate

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7500] doc: add warnings for FAQ which may not be accurate

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7499] doc: patch for py3k/Doc/faq/library.rst

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue6902] Built-in types format incorrectly with 0 padding.

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue6902] Built-in types format incorrectly with 0 padding.

2009-12-13 Thread Jeong-Min Lee
Changes by Jeong-Min Lee : -- nosy: +falsetru ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Nick Coghlan
Nick Coghlan added the comment: Agreed - particularly since that corner case can still be tested through doctest if desired by using ELLIPSIS instead of IGNORE_EXCEPTION_DETAIL. The patches mostly look good, but the doc changes should be updated to indicate that using ELLIPSIS doesn't handle th

[issue7502] All DocTestCase instances compare and hash equal to each other

2009-12-13 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Consider this example, based on two doctests from Twisted: from doctest import DocTestSuite import twisted.web2.stream docTestOne = DocTestSuite(twisted.web2.stream)._tests[0] import twisted.web2.test.test_stream docTestTwo = DocTestSuite(twist

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread R. David Murray
R. David Murray added the comment: My impression is that IGNORE_EXCEPTION_DETAIL is designed to allow you to have a doctest as an example with a fully typed out exception detail, but have it pass even if the exception detail changes. If that is indeed the original design, then I think your case

[issue7499] doc: patch for py3k/Doc/faq/library.rst

2009-12-13 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15550/py3k_doc_faq_library.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7499] doc: patch for py3k/Doc/faq/library.rst

2009-12-13 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15549/py3k_doc_faq_library.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7499] doc: patch for py3k/Doc/faq/library.rst

2009-12-13 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15546/py3k_doc_faq_library.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7499] doc: patch for py3k/Doc/faq/library.rst

2009-12-13 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15549/py3k_doc_faq_library.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Nick Coghlan
Nick Coghlan added the comment: The only design level question I can see is as follows: ExceptionName matches ExceptionName (always) a.b.ExceptionName matches ExceptionName (under IGNORE_EXCEPTION_DETAIL) ExceptionName matches a.b.ExceptionName (under IGNORE_EXCEPTION_DETAIL) a.b.ExceptionName

[issue7498] test_multiprocessing test_rapid_restart fails if port 9999 already in use

2009-12-13 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: -> jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7500] doc: add warnings for FAQ which may not be accurate

2009-12-13 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15548/py3k_doc_faq_warnings.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7500] doc: add warnings for FAQ which may not be accurate

2009-12-13 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15547/py3k_doc_faq_warnings.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users

2009-12-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, David! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue7501] python -m unittest path_to_suite_function errors

2009-12-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord priority: -> normal type: crash -> behavior versions: -Python 3.0 ___ Python tracker ___ ___

[issue7501] python -m unittest path_to_suite_function errors

2009-12-13 Thread Robert Collins
New submission from Robert Collins : :!python -m unittest foo.test_suite Traceback (most recent call last): File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.6/runpy.py", line 34, in _run_code exec code i

[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users

2009-12-13 Thread R. David Murray
R. David Murray added the comment: Yes, it does. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue7496] python does not work in command prompt

2009-12-13 Thread R. David Murray
R. David Murray added the comment: As Benjamin points out, this is a duplicate of issue 1616979, which has been fixed in both trunk and py3k. For future reference, Mohammad, a search with the string 'cp720' and 'status' set to 'don't care' would have brought up that bug report. The tracker's d

[issue7496] python does not work in command prompt

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: See #1616979. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7500] doc: add warnings for FAQ which may not be accurate

2009-12-13 Thread flox
New submission from flox : I reviewed some FAQ documents: issue7493, issue7495 and issue7499 But other documents may be inaccurate. We may add a warning at the top of these documents, until someone volunteer to review them. Patch attached. -- assignee: georg.brandl components: Document

[issue7499] doc: patch for py3k/Doc/faq/library.rst

2009-12-13 Thread flox
New submission from flox : I reviewed the documentation and tested the examples with Python 3. I found some import and print statements to change. Here is the patch. Note: I added a warning for the question "How do I get a single keypress" (without curses). The solution may not work as expected

[issue7498] test_multiprocessing test_rapid_restart fails if port 9999 already in use

2009-12-13 Thread R. David Murray
New submission from R. David Murray : test_rapid_restart has a hardcoded port. Patch updates it to use test_support.find_unused_port. Discovered on a buildbot with a hung test_multiprocessing run and confirmed to fix the subsequent failures of other test_multiprocessing runs. -- compon

[issue7496] python does not work in command prompt

2009-12-13 Thread Brett Cannon
Brett Cannon added the comment: Your OS is using an encoding called cp720 which Python knows nothing about. That means it can't open stdout, stderr, or stdin properly for reading/writing according to your set codec. You need to use a codec recognized by Python or add support for your codec to

[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users

2009-12-13 Thread Mark Dickinson
Mark Dickinson added the comment: I've added the calls to sem_unlink in r76813 (trunk), r76815 (py3k) and r76821 (release31-maint). I also changed the name of the semaphore for the second sem_open, so that we can tell which test is leaving files behind if it happens again in the future. Dav

[issue7488] Mac/README continues to refer to 2.6, not 3

2009-12-13 Thread Brett Cannon
Brett Cannon added the comment: Fixed in py3k in r76820 by replacing 2.6 references in paths to . Not bothering to backport since this is such a minor thing. -- nosy: +brett.cannon resolution: -> fixed status: open -> closed ___ Python tracker

[issue7492] doc: cPickle is really gone

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76812. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users

2009-12-13 Thread R. David Murray
Changes by R. David Murray : -- title: configure test for posix_semaphore capability leaves semaphore behind, on linux causing test to fail for other users -> configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users _

[issue7497] configure test for posix_semaphore capability leaves semaphore behind, on linux causing test to fail for other users

2009-12-13 Thread R. David Murray
R. David Murray added the comment: According to the linux man page, to delete the named semaphore after all processes are done with it one must call sem_unlink on it. So an unlink call should be added to both autoconf tests that use sem_open. -- ___

[issue7497] configure test for posix_semaphore capability leaves semaphore behind, on linux causing test to fail for other users

2009-12-13 Thread R. David Murray
New submission from R. David Murray : autoconf tries to open a semaphore (/autoconf) to find out if posix semaphores are available and working. On linux, a file 'sem.autoconf' is left behind in /dev/shm, owned by the user running autoconf. If any other user on the system compiles python, the au

[issue7496] python does not work in command prompt

2009-12-13 Thread mohammad
New submission from mohammad : when i type python in my command promp this message is shown : C:\Documents and Settings\X>python Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: cp720 This application has requested the Runtime to terminate

[issue7493] doc: patch for py3k/Doc/faq/design.rst

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7495] doc: patch for py3k/Doc/faq/programming.rst

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7495] doc: patch for py3k/Doc/faq/programming.rst

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76805. I think I got all the cases... -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker _

[issue7493] doc: patch for py3k/Doc/faq/design.rst

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7495] doc: patch for py3k/Doc/faq/programming.rst

2009-12-13 Thread flox
New submission from flox : I reviewed the documentation and tested the examples with Python 3. I found some parts which are changed or irrelevant. Here is the patch. The examples for Mandelbrot and Fibonacci work fine. -- assignee: georg.brandl components: Documentation files: py3k_doc

[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes

2009-12-13 Thread STINNER Victor
STINNER Victor added the comment: See also issue #3952. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes

2009-12-13 Thread STINNER Victor
STINNER Victor added the comment: The crash is an Heisenbug (read object which just has been destroyed, sometimes it works, sometimes it crash), so it's not easy the write a short example showing the crash. The code looks like: import cProfile prof = cProfile.Profile() prof.enable()

[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes

2009-12-13 Thread STINNER Victor
New submission from STINNER Victor : clearEntries() delete all nodes of the profiler tree, but currentProfilerContext keeps a reference to a tree node (currentProfilerContext->previous->header attribute). The patch fixes clearEntries() to delete all references (destroy currentProfilerContext

[issue7493] doc: patch for py3k/Doc/faq/design.rst

2009-12-13 Thread flox
New submission from flox : I reviewed the documentation and tested the examples with Python 3. I found many parts which are changed or irrelevant. Here is the patch. -- assignee: georg.brandl components: Documentation files: py3k_doc_faq_design.diff keywords: patch messages: 96345 nosy:

[issue7342] str(datetime_obj) doesn't include microseconds if their value is 0

2009-12-13 Thread Ezio Melotti
Ezio Melotti added the comment: Committed in r76804. Leaving it open until I port this to 2.6 and 3.x. -- stage: patch review -> commit review ___ Python tracker ___

[issue6654] Add "path" to the xmrlpc dispatcher method

2009-12-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: yes, I'll do so as soon as I'm able. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5596] memory leaks in py3k

2009-12-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected ___ Python tracker ___ ___ Python-bugs-li

[issue7492] doc: cPickle is really gone

2009-12-13 Thread flox
Changes by flox : -- keywords: +patch Added file: http://bugs.python.org/file15541/issue7492_cpickle.diff ___ Python tracker ___ ___ Py

[issue7492] doc: cPickle is really gone

2009-12-13 Thread flox
New submission from flox : Word "cPickle" is still used on these pages. http://docs.python.org/dev/py3k/library/shelve.html http://docs.python.org/dev/py3k/library/copyreg.html -- assignee: georg.brandl components: Documentation messages: 96342 nosy: flox, georg.brandl severity: normal

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-12-13 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue6381] test_urllib2_localnet sporadic failures closing socket

2009-12-13 Thread R. David Murray
R. David Murray added the comment: NB: this issue was caused by the issue 6267 patch. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: security -> behavior ___ Python tracker

[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-12-13 Thread R. David Murray
R. David Murray added the comment: NB: this issue was triggered by the issue 6267 patch. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue7348] StringIO.StringIO.readline(-1) returns the wrong result compared to other file-like objects

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76798. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-12-13 Thread R. David Murray
R. David Murray added the comment: Ezio, the original problem this ticket was opened for appears to be solved, so I'm going to close it. If you still want to work on the thread exception issue, please open a new ticket referencing this one. -- nosy: +r.david.murray resolution: -> fixe

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76794. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7056] regrtest runtest_inner calls findtestdir unnecessarily

2009-12-13 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It seems that type was switched to use tp_richcompare in r61529: Add py3k warnings for object, type, cell and dict comparisons. This should resolve issue2342 and partly resolve issue2373. -- ___ Python tracker

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Apparently type has __lt__ and the other rich cmp specials in Python 2.6, but lacked them in Python 2.5. I suppose these are probably being given precedence over the overridden __cmp__. -- ___ Python tracker <

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Here's an example of a metaclass with a __cmp__ special: exar...@boson:/tmp$ cat metacmp.py class X(type): def __cmp__(self, other): return -1 class Y: __metaclass__ = X print Y < Y exar...@boson:/tmp$ py

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2009-12-13 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the C version. -- Added file: http://bugs.python.org/file15540/erf_c.patch ___ Python tracker ___ ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread R. David Murray
Changes by R. David Murray : -- priority: -> high stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2009-12-13 Thread Mark Dickinson
Mark Dickinson added the comment: nirinA: thanks for the erf patch. It's fine as far as it goes; the main technical issue is that the series development only converges at a sensible rate for smallish x; for larger x something more is needed. Here's a prototype patch for the erf and erfc fu

[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-12-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: You should check the return value from PyObject_Str(). -- ___ Python tracker ___ ___ Python-bugs-lis

[issue7357] tarfile doesn't detect disk full error on extraction

2009-12-13 Thread Lars Gustäbel
Lars Gustäbel added the comment: I changed the default value for the errorlevel argument, so that fatal errors are now raised as regular exceptions by default (trunk: r76780, py3k: r76782). Thank you very much for bringing up this issue. -- resolution: -> accepted status: open -> close

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Lennart Regebro
Changes by Lennart Regebro : Added file: http://bugs.python.org/file15538/python-trunk-exception-detail.diff ___ Python tracker ___ ___ Python-

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Lennart Regebro
New submission from Lennart Regebro : In Python 3.x [1] the exception formatting prints the module path, while under 2.x it prints only the exception class name. This makes it very tricky to make doctests that pass under both Python 2 and Python 3 without resorting to ugly tricks. Since IGNORE_E

[issue1123727] gensuitemodule.processfile fails

2009-12-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: This issue is for deprecated Carbon module that has a well-maintained alternative outside of the stdlib. -- resolution: -> wont fix stage: test needed -> committed/rejected status: open -> closed ___ Python tracke

[issue7489] OS X binary installer for 3.1.1 missing from http://www.python.org/download/

2009-12-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the report; this is now fixed. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7471] GZipFile.readline too slow

2009-12-13 Thread Nir
Nir added the comment: First patch, please forgive long comment :) I submit a small patch which speeds up readline() on my data set - a 74MB (5MB .gz) log file with 600K lines. The speedup is 350%. Source of slowness is that (~20KB) extrabuf is allocated/deallocated in read() and _unread()