[issue7471] GZipFile.readline too slow
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 read() and _unread() with each call to readline(). In the patch read() returns a slice from extrabuf and defers manipulation of extrabuf to _read(). In the following, the first timeit() corresponds to reading extrabuf slices while the second timeit() corresponds to read() and _unread() as they are done today: timeit.Timer(x[1: 10100], x = 'x' * 2).timeit() 0.25299811363220215 timeit.Timer(x[: 100]; x[100:]; x[100:] + x[: 100], x = 'x' * 1).timeit() 5.843876838684082 Another speedup is achieved by doing a small shortcut in readline() for the typical case in which the entire line is already in extrabuf. The patch only addresses the typical case of calling readline() with no arguments. It does not address other problems in readline() logic. In particular the current 512 chunk size is not a sweet spot. Regardless of the size argument passed to readline(), read() will continue to decompress just 1024 bytes with each call as the size of extrabuf swings around the target size argument as result of the interaction between _unread() and read(). -- keywords: +patch nosy: +nirai Added file: http://bugs.python.org/file15536/gzip_7471_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7471 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7489] OS X binary installer for 3.1.1 missing from http://www.python.org/download/
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1123727] gensuitemodule.processfile fails
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1123727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
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 tricks. Since IGNORE_EXCEPTION_DETAIL was implemented to hide differences between exception messages in 2.3 and 2.4, it was suggested on python-dev [2] that IGNORE_EXCEPTION_DETAIL should be extended to also ignore the module name, so that `module.name.ExceptionClass` and `ExceptionClass` would match each other. This is easily done by just changing the regexp that is done for matching. I'll attach diffs both for trunk and for py3k-branch, so that both forms can be used on both versions. The diffs include tests and suggested documentation changes (although I reserve the right to be useless at writing documentation). [1] And possibly in some cases under Python 2.7 according to reports in the thread on python-dev about this issue, although I haven't been able to confirm this. I'll include a 2.7 diff anyway, as it would be good if both syntaxes work under both versions, if people start using 3to2, for example. [2] http://mail.python.org/pipermail/python-dev/2009-December/094460.html -- components: Tests files: python-py3k-exception-detail.diff keywords: patch messages: 96329 nosy: lregebro severity: normal status: open title: IGNORE_EXCEPTION_DETAIL should ignore the module name type: behavior versions: Python 2.7, Python 3.1 Added file: http://bugs.python.org/file15537/python-py3k-exception-detail.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7357] tarfile doesn't detect disk full error on extraction
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 status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7357 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3366] Add gamma function, error functions and other C99 math.h functions to math module
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 the erf and erfc functions that uses a power series (not quite the same as the series nirinA used; by pulling out a factor of exp(-x*2) you can make all coefficients in the remaining series positive, which is good for the numerics) for small x, and a continued fraction expansion for larger x. The erf and erfc functions are currently written in Python. I'll do some more testing (and possibly tweaking) of this patch and then translate the Python to C. -- Added file: http://bugs.python.org/file15539/erf.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - high stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3366] Add gamma function, error functions and other C99 math.h functions to math module
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7491] metaclass __cmp__ is ignored
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 exar...@boson:/tmp$ python2.5 metacmp.py True exar...@boson:/tmp$ python2.6 metacmp.py False exar...@boson:/tmp$ In Python 2.6 and Python 2.7a1, the __cmp__ isn't even invoked, as it was in Python 2.5. This breaks the ordering of item types in Axiom. A brief search reveals that sympy also ran into the problem, but they may have since worked around it. -- components: Interpreter Core messages: 96334 nosy: exarkun severity: normal status: open title: metaclass __cmp__ is ignored versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7491] metaclass __cmp__ is ignored
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__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7056] regrtest runtest_inner calls findtestdir unnecessarily
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7491] metaclass __cmp__ is ignored
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available
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: +r.david.murray resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7348] StringIO.StringIO.readline(-1) returns the wrong result compared to other file-like objects
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer
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 rep...@bugs.python.org http://bugs.python.org/issue6382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6381] test_urllib2_localnet sporadic failures closing socket
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 rep...@bugs.python.org http://bugs.python.org/issue6381 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6267] Cumulative patcc:h to http and xmlrpc
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7492] doc: cPickle is really gone
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 severity: normal status: open title: doc: cPickle is really gone versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7492] doc: cPickle is really gone
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5596] memory leaks in py3k
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6654] Add path to the xmrlpc dispatcher method
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7342] str(datetime_obj) doesn't include microseconds if their value is 0
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7493] doc: patch for py3k/Doc/faq/design.rst
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 messages: 96345 nosy: flox, georg.brandl severity: normal status: open title: doc: patch for py3k/Doc/faq/design.rst versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15542/py3k_doc_faq_design.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes
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 (destroy currentProfilerContext and set it to NULL). -- components: Extension Modules files: _lsprof.patch keywords: patch messages: 96346 nosy: haypo severity: normal status: open title: _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes type: crash versions: Python 2.7 Added file: http://bugs.python.org/file15543/_lsprof.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes
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 = cProfile.Profile() prof.enable() prof.clear() The next instruction will be analyzed by the profiler, but the profiler will crash in: ptrace_enter_call()-initContext()-getSubEntry()- Rotating_Tree_Get(caller-calls, entry), because caller-calls node is invalid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #3952. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7495] doc: patch for py3k/Doc/faq/programming.rst
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 files: py3k_doc_faq_programming.diff keywords: patch messages: 96349 nosy: flox, georg.brandl severity: normal status: open title: doc: patch for py3k/Doc/faq/programming.rst versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15544/py3k_doc_faq_programming.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7495 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7493] doc: patch for py3k/Doc/faq/design.rst
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7495] doc: patch for py3k/Doc/faq/programming.rst
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7495 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7495] doc: patch for py3k/Doc/faq/programming.rst
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7493] doc: patch for py3k/Doc/faq/design.rst
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7496] python does not work in command prompt
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 requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. what's the problem ?! -- components: Windows messages: 96351 nosy: memol_jpn severity: normal status: open title: python does not work in command prompt type: crash versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7497] configure test for posix_semaphore capability leaves semaphore behind, on linux causing test to fail for other users
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 compiles python, the autoconf tests will fail to open this file (which is rw to the owner only), and the resulting python will claim that the system has a broken semaphore implementation. -- components: Interpreter Core keywords: easy messages: 96352 nosy: mark.dickinson, r.david.murray priority: high severity: normal stage: needs patch status: open title: configure test for posix_semaphore capability leaves semaphore behind, on linux causing test to fail for other users type: compile error versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7497] configure test for posix_semaphore capability leaves semaphore behind, on linux causing test to fail for other users
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users
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 users ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7492] doc: cPickle is really gone
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7488] Mac/README continues to refer to 2.6, not 3
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7488 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users
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 in the future. David, could you check whether this fixes the problem on linux? -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7496] python does not work in command prompt
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 for your codec to allow it to run. -- nosy: +brett.cannon resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7498] test_multiprocessing test_rapid_restart fails if port 9999 already in use
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 runs. -- components: Tests files: test_multiprocessing_find_unused_port.patch keywords: buildbot, patch messages: 96358 nosy: jnoller, r.david.murray priority: normal severity: normal stage: patch review status: open title: test_multiprocessing test_rapid_restart fails if port already in use type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15545/test_multiprocessing_find_unused_port.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7499] doc: patch for py3k/Doc/faq/library.rst
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 work as expected. -- assignee: georg.brandl components: Documentation files: py3k_doc_faq_library.diff keywords: patch messages: 96359 nosy: flox, georg.brandl severity: normal status: open title: doc: patch for py3k/Doc/faq/library.rst versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15546/py3k_doc_faq_library.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7500] doc: add warnings for FAQ which may not be accurate
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 components: Documentation files: py3k_doc_faq_warnings.diff keywords: patch messages: 96360 nosy: flox, georg.brandl severity: normal status: open title: doc: add warnings for FAQ which may not be accurate versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15547/py3k_doc_faq_warnings.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7500 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7496] python does not work in command prompt
Benjamin Peterson benja...@python.org added the comment: See #1616979. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users
R. David Murray rdmur...@bitdance.com added the comment: Yes, it does. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7497 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7501] python -m unittest path_to_suite_function errors
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 _run_code exec code in run_globals File /usr/lib/python2.6/unittest.py, line 875, in module main(module=None) File /usr/lib/python2.6/unittest.py, line 816, in __init__ self.parseArgs(argv) File /usr/lib/python2.6/unittest.py, line 843, in parseArgs self.createTests() File /usr/lib/python2.6/unittest.py, line 849, in createTests self.module) File /usr/lib/python2.6/unittest.py, line 613, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File /usr/lib/python2.6/unittest.py, line 605, in loadTestsFromName (obj, test)) TypeError: calling function test_suite at 0x7f748dd6d7d0 returned unittest.TestSuite tests=[foo.TestTask testMethod=test_can_construct, foo.TestTask testMethod=test_can_construct], not a test where foo.py: def test_suite(): loader = unittest.TestLoader() tests = loader.loadTestsFromName(__name__) result = loader.suiteClass() result.addTests(generate_scenarios(tests)) return result -- components: Library (Lib) messages: 96364 nosy: rbcollins severity: normal status: open title: python -m unittest path_to_suite_function errors type: crash versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7501 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7501] python -m unittest path_to_suite_function errors
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7497] configure test for posix_semaphore capability leaves semaphore behind, causing test to fail for other users
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7500] doc: add warnings for FAQ which may not be accurate
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7500] doc: add warnings for FAQ which may not be accurate
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7498] test_multiprocessing test_rapid_restart fails if port 9999 already in use
Changes by Jesse Noller jnol...@gmail.com: -- assignee: - jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
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) a.b.ExceptionName matches x.y.ExceptionName (???) Should that 4th case still match under IGNORE_EXCEPTION_DETAIL? My personal inclination is that it should match, but figured the point was worth discussing explicitly. The main reason I think it should match is that it would allow reasonably graceful handling of module renames between 2.x and 3.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7499] doc: patch for py3k/Doc/faq/library.rst
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7499] doc: patch for py3k/Doc/faq/library.rst
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7499] doc: patch for py3k/Doc/faq/library.rst
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7499] doc: patch for py3k/Doc/faq/library.rst
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
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, then I think your case 4 should pass.] The one argument against it that I can see is the hypothetical case of an x.y.Error passing when the code actually raised an a.b.Error when a rename is *not* involved. But that seems like a marginal enough case that we could just ignore it. Especially since having case 4 pass makes the behavior of the modified IGNORE_EXCEPTION_DETAIL more consistent. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
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 = DocTestSuite(twisted.web2.test.test_stream)._tests[0] print docTestOne.id(), '==', docTestTwo.id(), '?' print docTestOne == docTestTwo One might reasonably expect a false result, since the two DocTestCase instances represent two different doctests. One will meet with surprise, though. -- components: Library (Lib) messages: 96368 nosy: exarkun severity: normal status: open title: All DocTestCase instances compare and hash equal to each other type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
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 ELLIPSIS doesn't handle the case of mismatched module names. E.g. Note that :const:`ELLIPSIS` can also be used to ignore the details of the exception message, but such a test may still fail based on whether or not the module details are printed as part of the exception name. Using :const:`IGNORE_EXCEPTION_DETAIL` is also the only clear way to write a doctest that doesn't care about the exception detail yet continues to pass under Python releases prior to 2.4 (doctest directives appear to be comments to them). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6902] Built-in types format incorrectly with 0 padding.
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +falsetru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6902] Built-in types format incorrectly with 0 padding.
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7499] doc: patch for py3k/Doc/faq/library.rst
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7500] doc: add warnings for FAQ which may not be accurate
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7500 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7500] doc: add warnings for FAQ which may not be accurate
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7388] Documentation: capitalizations of the word 'python' needed when used as a name
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name
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 http://bugs.python.org/issue7490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy
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 severity: normal status: open title: multiprocessing AuthenticationError digest sent was rejected when pickling proxy versions: Python 2.6 Added file: http://bugs.python.org/file15551/multiprocessing_bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com