[issue7471] GZipFile.readline too slow

2009-12-13 Thread Nir
Nir n...@winpdb.org 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

[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 mar...@v.loewis.de added the comment: Thanks for the report; this is now fixed. -- nosy: +loewis resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7489

[issue1123727] gensuitemodule.processfile fails

2009-12-13 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Lennart Regebro
New submission from Lennart Regebro rege...@gmail.com: 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

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

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

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

2009-12-13 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de 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

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

2009-12-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You should check the return value from PyObject_Str(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6108 ___

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

2009-12-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - high stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___

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

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

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: 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

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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__. --

[issue7056] regrtest runtest_inner calls findtestdir unnecessarily

2009-12-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7056 ___ ___

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76794. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7491

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

2009-12-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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:

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

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76798. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7348

[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-12-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue6381] test_urllib2_localnet sporadic failures closing socket

2009-12-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-12-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6267 ___

[issue7492] doc: cPickle is really gone

2009-12-13 Thread flox
New submission from flox la...@yahoo.fr: 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

[issue7492] doc: cPickle is really gone

2009-12-13 Thread flox
Changes by flox la...@yahoo.fr: -- keywords: +patch Added file: http://bugs.python.org/file15541/issue7492_cpickle.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7492 ___

[issue5596] memory leaks in py3k

2009-12-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5596 ___

[issue6654] Add path to the xmrlpc dispatcher method

2009-12-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: yes, I'll do so as soon as I'm able. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6654 ___

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

2009-12-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue7342

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

2009-12-13 Thread flox
New submission from flox la...@yahoo.fr: 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

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

2009-12-13 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: 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

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

2009-12-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 =

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

2009-12-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #3952. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494 ___ ___

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

2009-12-13 Thread flox
New submission from flox la...@yahoo.fr: 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

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7493 ___

[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 benja...@python.org added the comment: Fixed in r76805. I think I got all the cases... -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7349

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7495 ___

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7495 ___ ___ Python-bugs-list

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7493 ___ ___ Python-bugs-list

[issue7496] python does not work in command prompt

2009-12-13 Thread mohammad
New submission from mohammad mohammad.madan...@gmail.com: when i type python in my command promp this message is shown : C:\Documents and Settings\Xpython Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: cp720 This application has

[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 rdmur...@bitdance.com: 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

[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 rdmur...@bitdance.com 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, causing test to fail for other users

2009-12-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- 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

[issue7492] doc: cPickle is really gone

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76812. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7492

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

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

[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 dicki...@gmail.com 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

[issue7496] python does not work in command prompt

2009-12-13 Thread Brett Cannon
Brett Cannon br...@python.org 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

[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 rdmur...@bitdance.com: 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

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

2009-12-13 Thread flox
New submission from flox la...@yahoo.fr: 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

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

2009-12-13 Thread flox
New submission from flox la...@yahoo.fr: 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

[issue7496] python does not work in command prompt

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: See #1616979. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7496 ___

[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 rdmur...@bitdance.com added the comment: Yes, it does. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7497 ___ ___

[issue7501] python -m unittest path_to_suite_function errors

2009-12-13 Thread Robert Collins
New submission from Robert Collins robe...@robertcollins.net: :!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

[issue7501] python -m unittest path_to_suite_function errors

2009-12-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +michael.foord priority: - normal type: crash - behavior versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7501

[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 dicki...@gmail.com added the comment: Thanks, David! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7497

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

2009-12-13 Thread flox
Changes by flox la...@yahoo.fr: Removed file: http://bugs.python.org/file15547/py3k_doc_faq_warnings.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7500 ___

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

2009-12-13 Thread flox
Changes by flox la...@yahoo.fr: Added file: http://bugs.python.org/file15548/py3k_doc_faq_warnings.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7500 ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing

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

2009-12-13 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- assignee: - jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7498 ___ ___ Python-bugs-list

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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)

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

2009-12-13 Thread flox
Changes by flox la...@yahoo.fr: Added file: http://bugs.python.org/file15549/py3k_doc_faq_library.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7499 ___

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

2009-12-13 Thread flox
Changes by flox la...@yahoo.fr: Removed file: http://bugs.python.org/file15546/py3k_doc_faq_library.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7499 ___

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

2009-12-13 Thread flox
Changes by flox la...@yahoo.fr: Removed file: http://bugs.python.org/file15549/py3k_doc_faq_library.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7499 ___

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

2009-12-13 Thread flox
Changes by flox la...@yahoo.fr: Added file: http://bugs.python.org/file15550/py3k_doc_faq_library.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7499 ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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,

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

2009-12-13 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: 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 =

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2009-12-13 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +falsetru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6902 ___ ___ Python-bugs-list

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6902 ___

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7499 ___

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7500 ___

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7500 ___ ___ Python-bugs-list

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

2009-12-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7388 ___ ___ Python-bugs-list

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2009-12-13 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com 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 rep...@bugs.python.org

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

2009-12-13 Thread Pete Hunt
New submission from Pete Hunt floydoph...@gmail.com: 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