[issue7980] time.strptime not thread safe
Carlos Corbacho cathec...@gmail.com added the comment: As per my comments on Issue11108 - I suspect that PyImport_ImportModuleNoBlock is a bit of a red herring here - in Python 2.5 and earlier versions (well before PyImport_ImportModuleNoBlock was added), we have occasionally seen 'AttributeError: strptime' from threaded code calling time.strptime(), so whatever this bug is, I don't believe it's caused by the call now being non-blocking from 2.6 onwards. -- nosy: +ccorbacho ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7980 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11067 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11113] html.entities mapping dicts need updating?
Martin v. Löwis mar...@v.loewis.de added the comment: Supporting the ones in HTML 5 would be fine with me. Supporting those of xml-entity-names would be inappropriate - it's not clear (to me, at least) that all of them are really meant for use in HTML. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] file.tell extremely slow
New submission from Laurens 3.14159265...@xs4all.nl: file.tell() has become extremely slow in version 3.2, both rc1 and rc2. This problem did not exist in version 2.7.1, nor in version 3.1. It could be reproduced both on mac and windows xp. -- components: IO messages: 127874 nosy: Laurens priority: normal severity: normal status: open title: file.tell extremely slow versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11112] UDPTimeoutTest derives from SocketTCPTest
Ned Deily n...@acm.org added the comment: Thanks for the report. That does indeed seem to be a bug in the test: UDPTimeoutTest(SocketTCPTest) should be UDPTimeoutTest(SocketUDPTest) As the 3.2 release is in its final release candidate stage and this is not a release critical issue, the fix should wait until the source tree has opened up again for general fixes. -- nosy: +ned.deily stage: - needs patch versions: +Python 3.3 -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11115] csv readers and writers should be context managers
New submission from Dirkjan Ochtman dirk...@ochtman.nl: The context managers should simply forward to the underlying file object. -- components: Library (Lib) messages: 127876 nosy: djc priority: normal severity: normal status: open title: csv readers and writers should be context managers versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] file.tell extremely slow
Eric Smith e...@trueblade.com added the comment: Do you have a benchmark program you can post? -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11115] csv readers and writers should be context managers
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- type: - feature request versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10994] implementation details in sys module
Martin v. Löwis mar...@v.loewis.de added the comment: I can propose a specification of getsizeof: if you somehow manage to traverse all objects (without considering an object twice), and sum up the getsizeof results, you should end up with something close to, but smaller than the actual memory consumption. How close is a quality-of-implementation issue (so always returning 0 would be correct-but-useless). It may be that implementations can also support counting certain hidden memory usage (headers, blocks shared across instances that are not objects themselves). Such functions would should have different names and interfaces (e.g. sys.gethiddenblocks(o) may return a list of (address, size) pairs); CPython doesn't provide any such function (although sys.mallocoverhead might be useful). In any case: I'm not convinced that it is useful to mark functions as CPython-specific in the documentation. This clutters the documentation, and is of interest only for language lawyers. So if implementation details are to be documented, I'd prefer this to happen in a separate document. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10994 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10664] xml.sax.expatreader should support namespace prefixes
Nicolas Delaby delaby.nico...@gmail.com added the comment: the PyXML sax parser support this feature. May be it can be backported into stdlib ? -- nosy: +Nicolas.Delaby ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Following Issue 9124 discussion: it took longer than i thought, but now i could rework my thing and got errors. I've also tried Lib/test/test_mailbox.py, and that produces 0xA errors and 0xA failures. I'll attach the entire tracebacks and test output as email_mbox.txt. My local Py3K repo is at changeset HG:33774ca03c96 (SVN:r88332) Here are only the exceptions: == | [Opening mailbox OLD.sdaoden.mbox as mbox | * Box contains 8 messages | * Dispatching message 1 ERROR: failed to handle box OLD.sdaoden.mbox Traceback (most recent call last): File ./s-postman.py, line 1078, in _walk self._do_mailbox(mailbox) File ./s-postman.py, line 1088, in _do_mailbox Ticket.process_message(msg) File ./s-postman.py, line 987, in process_message print(msg) File usr/lib/python3.2/email/message.py, line 152, in __str__ return self.as_string() File usr/lib/python3.2/email/message.py, line 167, in as_string g.flatten(self, unixfrom=unixfrom) File usr/lib/python3.2/email/generator.py, line 88, in flatten self._write(msg) File usr/lib/python3.2/email/generator.py, line 141, in _write self._write_headers(msg) File usr/lib/python3.2/email/generator.py, line 176, in _write_headers self.write(header.encode(linesep=self._NL)+self._NL) File usr/lib/python3.2/email/header.py, line 317, in encode formatter.feed(lines[0], charset) Exception: IndexError: list index out of range Continue [yY - else no]? n Exit due to errors as above === PANIC: Box test.mdir: message-add failed, mails may be lost FIXME about fetch modus which saves the stuff somewhere Traceback (most recent call last): File ./s-postman.py, line 739, in add_ticket mailbox.add(ticket.message) File usr/lib/python3.2/mailbox.py, line 269, in add self._dump_message(message, tmp_file) File usr/lib/python3.2/mailbox.py, line 215, in _dump_message gen.flatten(message) File usr/lib/python3.2/email/generator.py, line 88, in flatten self._write(msg) File usr/lib/python3.2/email/generator.py, line 141, in _write self._write_headers(msg) File usr/lib/python3.2/email/generator.py, line 373, in _write_headers self.write(header.encode(linesep=self._NL)+self._NL) File usr/lib/python3.2/email/header.py, line 317, in encode formatter.feed(lines[0], charset) Exception: IndexError: list index out of range == Changing Ticket.process_message() to: def process_message(msg): print(Message-Type: , msg.__name__) ERROR: failed to handle box src/s-postman/OLD.sdaoden.mbox Traceback (most recent call last): File ./s-postman.py, line 1078, in _walk self._do_mailbox(mailbox) File ./s-postman.py, line 1088, in _do_mailbox Ticket.process_message(msg) File ./s-postman.py, line 987, in process_message print(Message-Type: , msg.__name__) Exception: AttributeError: 'mboxMessage' object has no attribute '__name__' Continue [yY - else no]? n Exit due to errors as above == And this is about Lib/test/test_mailbox.py 21:30 ~/py3k.hg/Lib/test $ python3 test_mailbox.py ~/tmp/test.txt Traceback (most recent call last): File test_mailbox.py, line 2091, in module test_main() File test_mailbox.py, line 2086, in test_main support.run_unittest(*tests) File /usr/lib/python3.2/test/support.py, line 1145, in run_unittest _run_suite(suite) File /usr/lib/python3.2/test/support.py, line 1128, in _run_suite raise TestFailed(err) test.support.TestFailed: multiple errors occurred -- components: Library (Lib) files: email_mbox.txt messages: 127880 nosy: sdaoden priority: normal severity: normal status: open title: mailbox and email errors type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file20673/email_mbox.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] file.tell extremely slow
Laurens 3.14159265...@xs4all.nl added the comment: Correction: the problem also exists in version 3.1. I created a benchmark program an ran it on my machine (iMac, snow leopard 10.6), with the following results: -- 2.6.6 (r266:84292, Dec 30 2010, 09:20:14) [GCC 4.2.1 (Apple Inc. build 5664)] result: 0.0009 s. -- 2.7.1 (r271:86832, Jan 13 2011, 07:38:03) [GCC 4.2.1 (Apple Inc. build 5664)] result: 0.0008 s. -- 3.1.3 (r313:86882M, Nov 30 2010, 09:55:56) [GCC 4.0.1 (Apple Inc. build 5494)] result: 9.5682 s. -- 3.2rc2 (r32rc2:88269, Jan 30 2011, 14:30:28) [GCC 4.2.1 (Apple Inc. build 5664)] result: 8.3531 s. Removing the line containing tell gives the following results: -- 2.6.6 (r266:84292, Dec 30 2010, 09:20:14) [GCC 4.2.1 (Apple Inc. build 5664)] result: 0.0007 s. -- 2.7.1 (r271:86832, Jan 13 2011, 07:38:03) [GCC 4.2.1 (Apple Inc. build 5664)] result: 0.0006 s. -- 3.1.3 (r313:86882M, Nov 30 2010, 09:55:56) [GCC 4.0.1 (Apple Inc. build 5494)] result: 0.0093 s. -- 3.2rc2 (r32rc2:88269, Jan 30 2011, 14:30:28) [GCC 4.2.1 (Apple Inc. build 5664)] result: 0.0007 s. (Apparently, reading a file became a lot faster from 3.1 to 3.2.) Conclusion: Execution of file.tell() makes the program about 1 times slower. Remark: the file mdutch.txt is a dummy text file containing 1000 lines with one word on each line. -- Added file: http://bugs.python.org/file20674/tell v01.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Oops - please be aware that these outputs were saved at the end of a frustrating session. I'm doing things to show *you* what's passed around and the like, i.e. that the message is indeed a mboxMessage etc. The error which occurs is always: File usr/lib/python3.2/email/header.py, line 317, in encode formatter.feed(lines[0], charset) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10271] warnings.showwarning should allow any callable object
lekma lekma...@gmail.com added the comment: brett, is there any chance for this to make it in? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This simplemost patch (email_header.patch) seems to work at first glance. It heals *everything* (except for babyl format, see issue 11062). (I feel a bit like Charlie Chaplin and i think you know what i mean.) -- keywords: +patch Added file: http://bugs.python.org/file20675/email_header.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20673/email_mbox.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] (mailbox and) email (errors) - patch
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- title: mailbox and email errors - (mailbox and) email (errors) - patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] (mailbox and) email (errors) - patch
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] (mailbox and) email (errors) - patch
SilentGhost ghost@gmail.com added the comment: The patch would be better to say: if not lines: continue However, it could be even simpler to do: for string, charset in self._chunks: if not string: continue -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9756] Crash with custom __getattribute__
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: See also issue #10922. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9756 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11115] csv readers and writers should be context managers
R. David Murray rdmur...@bitdance.com added the comment: There is no underlying file object. I presume you mean the reader/writer object? Which have no close method, so there is no point in making them a context manager. There is zero benefit and positive cost (an additional nesting level). Just use with to open the file you then wrap in a reader/writer instance. -- nosy: +r.david.murray resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] file.tell extremely slow
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I found that adding infile._CHUNK_SIZE = 20 makes the test much faster - 'only' 5 times slower than 2.7. -- nosy: +amaury.forgeotdarc, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
R. David Murray rdmur...@bitdance.com added the comment: Steffen, I appreciate your testing this. Your error report doesn't have enough information for me to reproduce the problem. Can you post a short test case, including a sample email/mailbox file if needed, that reproduces the problem you are seeing? With a reproducible test case I can fix it quickly, without one I feel like I'm groping in the dark. I need to be able to to create a unit test that demonstrates the problem in order to check in a fix; having a reproducible test case I can run will also help with writing that. You also seem to report a failure in test_mailbox. test_mailbox passes for me and on all the buildbots. Are you running RC2? What OS? -- stage: - unit test needed title: (mailbox and) email (errors) - patch - mailbox and email errors ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
R. David Murray rdmur...@bitdance.com added the comment: Perhaps your problem with test_mailbox is that you are running the test_mailbox from a checkout, but using an installed python3 that is not RC2, rather than the python3 built from the checkout? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] file.tell extremely slow
DSM dsm...@users.sourceforge.net added the comment: With a similar setup (OS X 10.6) I see the same problem. It seems to go away if the file is opened in binary mode for reading. @Laurens, can you confirm? -- nosy: +dsm001 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] file.tell extremely slow
DSM dsm...@users.sourceforge.net added the comment: (By go away I mean stop being pathological, not stop differing: I still see a factor of 2.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] file.tell extremely slow
Antoine Pitrou pit...@free.fr added the comment: That's expected. seek() and tell() on text (unicode) files are slow by construction. You should open your file in binary mode instead, if you want to do any seeking. Maybe I should add a note in http://docs.python.org/dev/library/io.html#performance -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11104] distutils sdist ignores MANIFEST
John Dennis jden...@redhat.com added the comment: No, I don't think I'm going to turn the tarball into a unit test, etc. I didn't break the code but I did report the problem, researched the history, provided a clear explanation, a reproducer and a patch to fix the problem. I think I've done my part as a community member. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11082] ValueError: Content-Length should be specified
William Wu willie...@gmail.com added the comment: So, what's the decision to be taken? I'm willing to provide patches (if I need to), but I need to know *the reasonable behaviors*. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11082] ValueError: Content-Length should be specified
Senthil Kumaran orsent...@gmail.com added the comment: For this particular issue, I think, it is good idea to disallow str explicitly, instead of letting it go through the Iterable and raise a ValueError with a different message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11117] Implementing Async IO
New submission from Jesús Cea Avión j...@jcea.es: This issue is a placeholder for exposing Async IO thru Python. The relevant mail thread is at: http://mail.python.org/pipermail/python-dev/2010-October/104770.html Relevant resources: http://feedproxy.google.com/~r/Wwwc0t0d0s0org/~3/snM0BJ8evv4/7147-Synchronicity-in-asynchronicity.html http://www.opengroup.org/onlinepubs/95399/basedefs/aio.h.html -- assignee: jcea components: Extension Modules messages: 127898 nosy: jcea priority: normal severity: normal stage: needs patch status: open title: Implementing Async IO type: feature request versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11117] Implementing Async IO
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11117] Implementing Async IO
Antoine Pitrou pit...@free.fr added the comment: From the python-dev thread: http://mail.python.org/pipermail/python-dev/2010-October/104782.html “os._exit is useful. os.open is useful. aio_* are *not* useful. For anything. If there's anything you think you want to use them for, you're wrong. It either won't work properly or it will worse performing than the simpler alternatives.” http://mail.python.org/pipermail/python-dev/2010-October/104786.html “I'd like to echo this sentiment. This is not about providing a 'safe' wrapper to hide some powerful feature of these APIs: the POSIX aio_* functions are really completely useless. [...] Not only is the performance usually worse than expected, the behavior of aio_* functions require all kinds of subtle and mysterious coordination with signal handling, which I'm not entirely sure Python would even be able to pull off without some modifications to the signal module. (And, as Jean-Paul mentioned, if your OS kernel runs out of space in a queue somewhere, completion notifications might just never be delivered at all.)” -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10994] implementation details in sys module
Armin Rigo ar...@users.sourceforge.net added the comment: Martin: I kind of agree with you, although I guess that for pratical reasons if you don't have a reasonable sys.getsizeof() implementation then it's better to raise TypeError than return 0 (like CPython, which may raise TypeError: Type %.100s doesn't define __sizeof__). I agree that it's not really useful to mark functions as CPython-specific in the documentation, if only because whenever a new implementation like PyPy comes along, then it's going to have a rather different set of functions that it wants to consider implementation details. I would say that more than half the functions in the sys module marked CPython-specific in the doc are implemented in PyPy just fine, and there is an equal number of functions not marked CPython-specific that have no chance to be implemented in PyPy. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10994 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] TextIOWrapper.tell extremely slow
Antoine Pitrou pit...@free.fr added the comment: That said, I think it is possible to make algorithmic improvements to TextIOWrapper.tell() so that at least performance becomes acceptable. -- stage: - needs patch title: file.tell extremely slow - TextIOWrapper.tell extremely slow type: - performance versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10891] Tweak sorting howto to eliminate redundancy
Georg Brandl ge...@python.org added the comment: I do think that list.sort() method of a list is a bit too much. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10891 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11117] Implementing Async IO
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11110] Py_DECREF-Py_XDECREF in Module/_sqlite/module.c
Georg Brandl ge...@python.org added the comment: Either one of these fixes (I prefer Brett's since it's shorter) should make it into 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue0 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11082] ValueError: Content-Length should be specified
Georg Brandl ge...@python.org added the comment: Then let us do that. Senthil, what about urlencode of bytes values returning a str? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)
Georg Brandl ge...@python.org added the comment: I would prefer just letting the tests fail. Disabled tests are usually forgotten, and never re-enabled. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10736 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3367] Uninitialized value read in parsetok.c
Georg Brandl ge...@python.org added the comment: No need to bump the version, it can go into 3.2.1. But seeing the history of this case, I don't want to play around here before 3.2 final. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] TextIOWrapper.tell extremely slow
Laurens 3.14159265...@xs4all.nl added the comment: First of all, thanks to all for your cooperation, it is very much appreciated. I made some minor changes to the benchmark program. Conclusions are: * setting file._CHUNK_SIZE to 20 has a dramatic effect, changing execution time in 3.2rc2 from 8.4s to 0.06s, so more than a factor 100 improvement. It's a bit clumsy, but acceptable as a performance work around. * opening file binary has a dramatic effect as well, I would say. After 2 minutes I stopped execution of the program, concluding that this change made the program at least a factor 10 *slower* instead of faster. So I cannot confirm DSM's statement that the performance hit would be a factor 2. Instead, I see a performance hit of at least a factor 10 (10e5) compared tot 2.7.1, which is presumably not by construction ;-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] TextIOWrapper.tell extremely slow
Antoine Pitrou pit...@free.fr added the comment: opening file binary has a dramatic effect as well, I would say. After 2 minutes I stopped execution of the program Hint: b'' is not equal to '' ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9364] some problems with the documentation of pydoc
Changes by Ron Adam ron_a...@users.sourceforge.net: -- nosy: +ron_adam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9364 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11061] Verify command option before parsing config file
Changes by Éric Araujo mer...@netwok.org: -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11061] Verify command option before parsing config file
Changes by Éric Araujo mer...@netwok.org: -- type: behavior - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant
Éric Araujo mer...@netwok.org added the comment: Strange, the regex comes straight from the PEP, which has had careful review. It must be somewhere else in the code. Would you like to work on a patch, or a test first? We have to find out if sdist is responsible, or metadata, or version, etc. -- keywords: +easy versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11060 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3367] Uninitialized value read in parsetok.c
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Feb 4, 2011 at 11:35 AM, Georg Brandl rep...@bugs.python.org wrote: .. But seeing the history of this case, I don't want to play around here before 3.2 final. Here is my understanding of the history of this case: tmp1.patch was applied in r65539 and reverted in r65543 with the log entry saying: r65543 | andrew.kuchling | 2008-08-04 22:05:23 -0400 (Mon, 04 Aug 2008) | 1 line #3367: revert rev. 65539: this change causes test_parser to fail Revision 65539 has never been applied to py3k, but it would be equivalent to the following diff: Index: Parser/tokenizer.c === --- Parser/tokenizer.c (revision 88320) +++ Parser/tokenizer.c (working copy) @@ -1289,7 +1289,7 @@ register int c; int blankline, nonascii; -*p_start = *p_end = NULL; +tok-line_start = *p_start = *p_end = NULL; nextline: tok-start = NULL; blankline = 0; Applying the above diff now makes test_parser crash on a debug and fail on a regular build. The problem with initializing tok-line_start to NULL is that doing so trades one undefined behavior for another: pointer comparison such as a = tok-line_start is only defined if both pointers point to the same buffer. Ordering between NULL and non-NULL pointers is undefined. My patch does not have this issue because it initializes tok-line_start to tok-buf. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3367] Uninitialized value read in parsetok.c
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: georg.brandl - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11113] html.entities mapping dicts need updating?
Éric Araujo mer...@netwok.org added the comment: Agreed with Martin. I wonder if we should provide a means to use only HTML 4.01 entity references (say with a function parameter html5 defaulting to True) or we should just update the mapping. -- nosy: +eric.araujo stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11101] plistlib has no graceful way of handing None values
Changes by Éric Araujo mer...@netwok.org: -- nosy: +jvr, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11101 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11090] Doc errors for unittest in Python 3.1
Changes by Éric Araujo mer...@netwok.org: -- nosy: +docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11090 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11086] add lib2to3/__main__.py
Éric Araujo mer...@netwok.org added the comment: +1. Not sure this needs unit tests; I suppose you plan to add a note to the docs. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11085] expose _abcoll as collections.abc
Éric Araujo mer...@netwok.org added the comment: Seems a good idea to me. Regarding the implementation, knowing your reluctance to turn modules into packages, I guess you’re talking about exposing collections.abc in a similar manner to os.path, which is fine IMO. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] TextIOWrapper.tell extremely slow
Antoine Pitrou pit...@free.fr added the comment: Here is a proof-of-concept patch for the pure Python version of TextIOWrapper.tell(). It turns the O(CHUNK_SIZE) operation into an O(1) operation most of time (still O(CHUNK_SIZE) worst-case - weird decoders and/or crazy input). -- keywords: +patch Added file: http://bugs.python.org/file20676/textiotell.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] TextIOWrapper.tell extremely slow
Antoine Pitrou pit...@free.fr added the comment: Here is a proof-of-concept patch for the pure Python version of TextIOWrapper.tell(). It turns the O(CHUNK_SIZE) operation into an O(1) operation most of time (still O(CHUNK_SIZE) worst-case - weird decoders and/or crazy input). Actually, that's wrong. The patch is still O(CHUNK_SIZE) but with a vastly different multiplier (and, optimistically, much smaller, as common codecs are codecs in C). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11076] Iterable argparse Namespace
Éric Araujo mer...@netwok.org added the comment: Nice idea indeed, thanks for the patch. For the doc section, I’d prefer to de-emplasize the specific use case of **kwargs, in favor of mentioning dict conversion in a general way: Converting the namespace to a dict ^^ Namespace objects are iterable so you can easily convert them to a :class:`dict`:: args = parser.parse_args() argdict = dict(args) This makes it easy to introspect the namespace or to pass the command-line arguments to a function taking a bunch of keyword arguments:: somefunction(**dict(parser.parse_args())) +def __iter__(self): +return iter(self.__dict__.items()) Isn’t “return self.__dict__.items()” sufficient in 3.x? Alternate idea: don’t implement __iter__, which is sorta too broad, and implement a method that just returns a dict. Musing: Isn’t Namespace (technically: _AttributeHolder) very much like a named tuple? Could some code be removed by using named tuples in argparse? Note that named tuples provide a method to convert themselves to a dict, and are efficient (IIRC). -- nosy: +bethard, eric.araujo stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11076 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11118] Fix python3 None export
New submission from Martin v. Löwis mar...@v.loewis.de: The None export of python3.dll is bogus; attached is a fix. This also regenerates python3stub.def, which contained some exports that had already been deleted from python3.def. -- files: none.diff keywords: patch messages: 127917 nosy: georg.brandl, loewis priority: release blocker severity: normal status: open title: Fix python3 None export versions: Python 3.2 Added file: http://bugs.python.org/file20677/none.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11050] email.utils.getaddresses behavior contradicts RFC2822
Changes by Glenn Linderman v+pyt...@g.nevcal.com: -- nosy: +v+python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11050 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11118] Fix python3 None export
Brian Curtin cur...@acm.org added the comment: Looks fine to me. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11118] Fix python3 None export
Georg Brandl ge...@python.org added the comment: Me too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11118] Fix python3 None export
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the quick review. Committed as r88333. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: You're right, the python3 executable is indeed 20:05 ~/tmp $ python3 -V Python 3.2rc1+ The relevant .py files (mailbox.py, email/*.py, (email/mime/*.py), test/test_mailbox.py are symlinked to the repo files. (And, different to this morning - sorry, *sorry*: lunch break - they all point to HG:33774ca03c96 (SVN:r88332) files. I've removed my patch and this is what happens (only five errors remain). The traceback: Traceback (most recent call last): File test_mailbox.py, line 2092, in module test_main() File test_mailbox.py, line 2087, in test_main support.run_unittest(*tests) File /Users/steffen/usr/lib/python3.2/test/support.py, line 1145, in run_unittest _run_suite(suite) File /Users/steffen/usr/lib/python3.2/test/support.py, line 1128, in _run_suite raise TestFailed(err) test.support.TestFailed: multiple errors occurred == This is the stripped output: test_add_binary_file (__main__.TestMaildir) ... ERROR test_add_binary_file (__main__.TestMbox) ... ERROR test_add_binary_file (__main__.TestMMDF) ... ERROR test_add_binary_file (__main__.TestMH) ... ERROR test_add_binary_file (__main__.TestBabyl) ... ERROR == ERROR: test_add_binary_file (__main__.TestMaildir) -- Traceback (most recent call last): File test_mailbox.py, line 146, in test_add_binary_file sys.exit(1) SystemExit: 1 == ERROR: test_add_binary_file (__main__.TestMbox) -- Traceback (most recent call last): File test_mailbox.py, line 146, in test_add_binary_file sys.exit(1) SystemExit: 1 == ERROR: test_add_binary_file (__main__.TestMMDF) -- Traceback (most recent call last): File test_mailbox.py, line 146, in test_add_binary_file sys.exit(1) SystemExit: 1 == ERROR: test_add_binary_file (__main__.TestMH) -- Traceback (most recent call last): File test_mailbox.py, line 146, in test_add_binary_file sys.exit(1) SystemExit: 1 == ERROR: test_add_binary_file (__main__.TestBabyl) -- Traceback (most recent call last): File test_mailbox.py, line 146, in test_add_binary_file sys.exit(1) SystemExit: 1 -- Ran 327 tests in 8.540s -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11119] Passing a socket to a process (multiprocessing module)
New submission from pen hill imbenh...@gmail.com: When I run the following listing (server_multi.py) by using multiprocessing module of python, it runs successfully on a Linux machine. However, on a 64-bit windows machine I get the following error: pickle.PicklingError: Can't pickle built-in method recvfrom_into of _socket.socket object at 0x02D2CF10: it's not found as __main__.recvfrom_into This module is from the book Foundations of Python Network Programming, 2nd Edition. I am pasting the code with the permission of the author. It seems that socket listen_sock cannot be pickled under 64-bit Windows, however it can be pickled under Linux. How can we remove this issue on Windows? It is interesting that if I use the threading module, it works for both Windows and Linux. Thanks. server_multi.py : #usage: $ python server_multi.py localhost process #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 7 - server_multi.py # Using multiple threads or processes to serve several clients in parallel. import sys, time, lancelot from multiprocessing import Process from server_simple import server_loop from threading import Thread WORKER_CLASSES = {'thread': Thread, 'process': Process} WORKER_MAX = 10 def start_worker(Worker, listen_sock): worker = Worker(target=server_loop, args=(listen_sock,)) worker.daemon = True # exit when the main process does worker.start() return worker if __name__ == '__main__': if len(sys.argv) != 3 or sys.argv[2] not in WORKER_CLASSES: print sys.stderr, 'usage: server_multi.py interface thread|process' sys.exit(2) Worker = WORKER_CLASSES[sys.argv.pop()] # setup() wants len(argv)==2 # Every worker will accept() forever on the same listening socket. listen_sock = lancelot.setup() workers = [] for i in range(WORKER_MAX): workers.append(start_worker(Worker, listen_sock)) # Check every two seconds for dead workers, and replace them. while True: time.sleep(2) for worker in workers: if not worker.is_alive(): print worker.name, died; starting replacement worker workers.remove(worker) workers.append(start_worker(Worker, listen_sock)) lancelot.py: #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 7 - lancelot.py # Constants and routines for supporting a certain network conversation. import socket, sys PORT = 1060 qa = (('What is your name?', 'My name is Sir Lancelot of Camelot.'), ('What is your quest?', 'To seek the Holy Grail.'), ('What is your favorite color?', 'Blue.')) qadict = dict(qa) def recv_until(sock, suffix): message = '' while not message.endswith(suffix): data = sock.recv(4096) if not data: raise EOFError('socket closed before we saw %r' % suffix) message += data return message def setup(): if len(sys.argv) != 2: print sys.stderr, 'usage: %s interface' % sys.argv[0] exit(2) interface = sys.argv[1] sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind((interface, PORT)) sock.listen(128) print 'Ready and listening at %r port %d' % (interface, PORT) return sock server_simple.py: #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 7 - server_simple.py # Simple server that only serves one client at a time; others have to wait. import lancelot def handle_client(client_sock): try: while True: question = lancelot.recv_until(client_sock, '?') answer = lancelot.qadict[question] client_sock.sendall(answer) except EOFError: client_sock.close() def server_loop(listen_sock): while True: client_sock, sockname = listen_sock.accept() handle_client(client_sock) if __name__ == '__main__': listen_sock = lancelot.setup() server_loop(listen_sock) -- components: None messages: 127922 nosy: pen hill priority: normal severity: normal status: open title: Passing a socket to a process (multiprocessing module) type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: P.S.: it's that messed UNIX with the nice user-experience *G*UI. And the __pycache__ files state 'cpython-32'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions
Martin v. Löwis mar...@v.loewis.de added the comment: Here is the patch I'd like to add to 3.2: this adds PyType_GetFlags, so that the fast checks remain available. -- nosy: +georg.brandl priority: normal - release blocker Added file: http://bugs.python.org/file20678/tp_flags.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11067 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Dear RDM, now i'm really ashamed. To be absolutely sure that i am up-to-date if diff'd and found that test_mailbox.py contained a sys.exit(1) i've inserted this - it was the lunch break, really! Forget everything i've posted. Please close this. Shame on me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11074] fix tokenize so it can be reloaded
Éric Araujo mer...@netwok.org added the comment: LGTM. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11074 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11063] uuid.py module import has heavy side effects
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11063 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11120] threading.Thread.daemon Documentation Incomplete
New submission from cardinalbiggles jmander...@gmail.com: In the threading module, the documentation for Thread.isDaemon()/Thread.setDaemon() indicates they are the old API for Thread.daemon, which does not indicate the version in which it was introduced (2.6 I believe). Additionally, the documentation for Thread.setDaemon() should at least include the daemonic parameter, if not the full usage documentation for those targeting older versions. Targeting Python 2.4, and being unable to (as) efficiently navigate the old documentation site, I have come to rely on the various 'Changed/New in version 2.X' messages in the current documentation. This caused some confusion on my part. -- assignee: docs@python components: Documentation messages: 127927 nosy: cardinalbiggles, docs@python priority: normal severity: normal status: open title: threading.Thread.daemon Documentation Incomplete type: feature request versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I thought about it. It's worse. You did a good job and i was not even able to create symlinks the way it should have been done. This is a real shame - for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)
Matthew Walker mattgwwal...@gmail.com added the comment: It looks to me as if this issue has already been pretty much sorted out already. Maybe all it lacks is to be officially closed, but just in case I just wanted to add that I too saw this bug (stock python 2.7, Ubuntu 10.04 64 bit). My example code was: #!/usr/bin/env python import multiprocessing import os import time def f(i): print I am process number,os.getpid(),: i =,i time.sleep(10) return i*i pool = multiprocessing.Pool(maxtasksperchild=1) print pool.map(f, range(10)) -- nosy: +Matthew.Walker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)
Matthew Walker mattgwwal...@gmail.com added the comment: Oh, and the stack trace was identical to Greg's: $ ./test.py I am process number 10378 : i = 0 [...] I am process number 10390 : i = 9 [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] Exception in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File /gel/usr/mawal32/system/lib/python2.7/threading.py, line 530, in __bootstrap_inner File /gel/usr/mawal32/system/lib/python2.7/threading.py, line 483, in run File /gel/usr/mawal32/system/lib/python2.7/multiprocessing/pool.py, line 272, in _handle_workers type 'exceptions.TypeError': 'NoneType' object is not callable -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11121] libpython3.so support with --enable-shared
New submission from Martin v. Löwis mar...@v.loewis.de: When configuring r88333 with --enable-shared, the error message ./configure: line 4924: test: ==: unary operator expected is produced. The attached patch fixes the problem. -- files: pydebug.diff keywords: patch messages: 127931 nosy: loewis priority: release blocker severity: normal status: open title: libpython3.so support with --enable-shared Added file: http://bugs.python.org/file20679/pydebug.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11086] add lib2to3/__main__.py
Brett Cannon br...@python.org added the comment: Yeah, probably some little mention in the docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] TextIOWrapper.tell extremely slow
Antoine Pitrou pit...@free.fr added the comment: New patch also optimizing the C version. tell() can be more than 100x faster now (still much slower than binary tell()). -- stage: needs patch - patch review Added file: http://bugs.python.org/file20680/textiotell2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11121] libpython3.so support with --enable-shared
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever, georg.brandl versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11114] TextIOWrapper.tell extremely slow
Laurens 3.14159265...@xs4all.nl added the comment: All, thanks for your help. Opening the file in binary mode worked immediately in the toy program (that is, the benchmark code I sent you). (Antoine, thanks for the hint.) In my real world program, I solved the problem by reading a line from a binary input file, and decode it explicitly and immediately to a string. The performance has become acceptable now, and I propose to close this issue. Thanks again, cheers, Laurens -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11102] configure doesn't find major() on HP-UX v11.31
Oren Held o...@held.org.il added the comment: Just a small note: after this patch applied, building Python 2.7.1 was successful on Linux (SLES 11, RHEL 5, Ubuntu 10.10), Solaris 10, and HP-UX 11 v3. (I didn't get to build Python on other platforms) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10271] warnings.showwarning should allow any callable object
Brett Cannon br...@python.org added the comment: Not for 3.2.0, no as it's such a minor fix. Chance this can go into 3.2.1, though. Definitely for 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11104] distutils sdist ignores MANIFEST
Éric Araujo mer...@netwok.org added the comment: I didn’t mean to imply you had to, I just asked if you wanted to. Reporting the bug is a valuable contribution indeed, I’ll take over for the rest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11110] Py_DECREF-Py_XDECREF in Module/_sqlite/module.c
Brett Cannon br...@python.org added the comment: py3k: r88337 3.1: 88339 2.7 (blocked): 88338 -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue0 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions
Antoine Pitrou pit...@free.fr added the comment: The doc needs a versionadded attribute. Otherwise, looks good to me. -- nosy: +pitrou resolution: - accepted stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11067 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11121] libpython3.so support with --enable-shared
Antoine Pitrou pit...@free.fr added the comment: Looks good to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11116] mailbox and email errors
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: However, as a last peep from me before i'll burn to ashes, and now with all fresh Python 3.2rc2+ all through, i do want to ask a question. I'm still not finished with my broken thing, so the usual exception still occurs in respect to the malformed spam mail which made its way into Lib/test/test_mailbox.py - this is still my fault. The thing i want to point out is that the target mailbox will end with these lines after the program fails: From MAILER-DAEMON Fri Feb 4 20:17:03 2011- EOF here Shouldn't this be suppressed? Or, otherwise, shouldn't [ Status: RO] [ Content-Length: 0] [ Lines: 0] be appended in case of an exception? The current result does not comply to http://qmail.org./man/man5/mbox.html (which is linked by http://tools.ietf.org/html/rfc4155). mutt(1) is still capable to open it (it modifies the mailbox as shown above, including bracket lines), but i don't know if that applies to all mail-clients out there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11122] bdist_rpm fails
New submission from James purplei...@gmail.com: Hi distutils, When I run: ./setup.py bdist --formats=rpm on my source directory, I get the error: rpm -ba --define _topdir /home/james/code/scantran/build/bdist.linux-x86_64/rpm --clean build/bdist.linux-x86_64/rpm/SPECS/scantran.spec -ba: unknown option error: command 'rpm' failed with exit status 1 It seems the problem can be fixed by installing the rpm-build package (on fedora 14 anyways) and so perhaps something should be done so that this is more obvious... HTH, James -- assignee: tarek components: Distutils messages: 127942 nosy: eric.araujo, purpleidea, tarek priority: normal severity: normal status: open title: bdist_rpm fails versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11122] bdist_rpm fails
Éric Araujo mer...@netwok.org added the comment: Does this mean that there is one rpm command that does not have all options, and that rpm-build overwrites that command with another one that does the right thing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11122] bdist_rpm fails
James purplei...@gmail.com added the comment: In the source for distutils it seems to attempt to use 'rpmbuild' if it exists, but otherwise falls back on regular 'rpm', however in my rpm: $ rpm --version RPM version 4.8.1 this fails as there is no -ba option. James -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11122] bdist_rpm fails
Éric Araujo mer...@netwok.org added the comment: What is your OS name and version? Is that rpm version considered obsolete or not? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11076] Iterable argparse Namespace
Steven Bethard steven.beth...@gmail.com added the comment: What's wrong with `vars(args)`? That's the standard way of getting a dict from an object, no? Note that you're not always guaranteed to get a Namespace back (e.g. if you pass the namespace= argument to parse_args), and I'd generally like to keep Namespace as simple as possible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11076 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11123] problem with packaged dependency extracter script, pdeps
New submission from $$Coffeepot$$ coffeepott...@yahoo.com: This bug concerns the pdeps script, python directory\Tools\Scripts\pdeps.py. This script opens a list of files and extracts a list of their inter-dependencies. I'm running Python 3.1.1 on Windows XP, installed via binary installer, but have confirmed that the bug is present in the source distribution of Python 3.2 rc2, the newest code I know of. (In fact, the only difference between the pdeps.py files in each version was the shebang line, 3.2 rc2 shebang line: #! /usr/bin/env python3, 3.1.1 shebang line: #! /usr/bin/env python.) When I tried out the module I found a series of small bugs, basically typos, each of which caused the script to crash due to an unhandled exception. 1. The relevant section of the unmodified pdeps.py file # Compiled regular expressions to search for import statements # m_import = re.compile('^[ \t]*from[ \t]+([^ \t]+)[ \t]+') m_from = re.compile('^[ \t]*import[ \t]+([^#]+)') # Collect data from one file # def process(filename, table): ... if m_import.match(line) = 0: (a, b), (a1, b1) = m_import.regs[:2] elif m_from.match(line) = 0: (a, b), (a1, b1) = m_from.regs[:2] ... The match method of a compiled regular expression returns an SREMatch object, so the conditionals must be changed. In addition, the regs data is a member of the match object itself, not the compiled expression object, so the right side of the assignments must also be changed. modified version ... import_match = m_import.match(line) from_match = m_from.match(line) if import_match: (a, b), (a1, b1) = import_match.regs[:2] elif from_match: (a, b), (a1, b1) = from_match.regs[:2] ... 2. unmodified # Invert a table (this is again totally general). # All keys of the original table are made keys of the inverse, # so there may be empty lists in the inverse. # def inverse(table): inv = {} for key in table.keys(): if not inv.has_key(key): inv[key] = [] for item in table[key]: store(inv, item, key) return inv Dictionaries have no has_key method, though I vaguely recall that they used to. That's a quick fix though. modified # Invert a table (this is again totally general). # All keys of the original table are made keys of the inverse, # so there may be empty lists in the inverse. # def inverse(table): inv = {} for key in table.keys(): if key in inv: inv[key] = [] for item in table[key]: store(inv, item, key) return inv output of fc, windows file comparing utility, run on the pdeps file from 3.2 rc2, and the modified pdeps file from 3.1.1 fc original-pdeps.py pdeps.py Comparing files original-pdeps.py and PDEPS.PY * original-pdeps.py #! /usr/bin/env python3 * PDEPS.PY #! /usr/bin/env python * * original-pdeps.py line = line[:-1] + nextline if m_import.match(line) = 0: (a, b), (a1, b1) = m_import.regs[:2] elif m_from.match(line) = 0: (a, b), (a1, b1) = m_from.regs[:2] else: continue * PDEPS.PY line = line[:-1] + nextline import_match = m_import.match(line) from_match = m_from.match(line) if import_match: (a, b), (a1, b1) = import_match.regs[:2] elif from_match: (a, b), (a1, b1) = from_match.regs[:2] else: continue * * original-pdeps.py for key in table.keys(): if not inv.has_key(key): inv[key] = [] * PDEPS.PY for key in table.keys(): if key in inv: inv[key] = [] * With these changes the pdep script works as expected. This is a pretty lower priority bug imho. It prevents anyone from using the script, but fixing the bug took about 5 minutes, and I doubt the pdeps script gets much use anyway. This bug is unlikely to inconvenience anyone. -- components: Demos and Tools messages: 127947 nosy: $$Coffeepot$$ priority: normal severity: normal status: open title: problem with packaged dependency extracter script, pdeps type: crash versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11122] bdist_rpm fails
Eric Smith e...@trueblade.com added the comment: rpm -ba is very old. I think it's been at least since 2002 that -ba was supported by rpm. I believe bdist_rpm is calling rpmbuild -ba, and if that doesn't exist, then rpm -ba is a transition strategy until all systems supported rpmbuild. This transition period should be over. Unfortunately today it's far more likely that rpm -ba will not be what you want to call, but rpm will almost always be found, giving this error. Most systems (certain RedHat based) ship rpmbuild as a separate command. RedHat installs it via the rpm-build package. I'd suggest just switching bdist_rpm to always use rpmbuild. Then at least the error would be that rpmbuild isn't found. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11123] problem with packaged dependency extracter script, pdeps
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This script is indeed unusable. Here is a proper patch file, tested by running it on a few files. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file20681/pdeps.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11124] test_posix failure on the Leopard buildbot
New submission from Antoine Pitrou pit...@free.fr: test_posix has started failing deterministically on the Leopard buildbot. Stephen, did you change something in its configuration? http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.x/builds/786/steps/test/logs/stdio == FAIL: test_getgroups (test.test_posix.PosixTester) -- Traceback (most recent call last): File /Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/test/test_posix.py, line 390, in test_getgroups set(posix.getgroups() + [posix.getegid()])) AssertionError: Items in the first set but not the second: 108 -- components: Library (Lib), Tests messages: 127950 nosy: ixokai, ned.deily, pitrou, ronaldoussoren priority: critical severity: normal status: open title: test_posix failure on the Leopard buildbot type: behavior versions: Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11111] See Gmail on your Google homepage
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file20671/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11111] See Gmail on your Google homepage
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg127856 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11124] test_posix failure on the Leopard buildbot
Stephen Hansen me+pyt...@ixokai.io added the comment: This is just http://bugs.python.org/issue7900 all over again. In the meantime, I restarted the buildslave and re-submitted the jobs so the failures should go away. (I still advocate that the test is fundamentally wrong/flawed on Mac and should be disabled at least -- but that discussion is over on issue7900). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7108] test_commands.py failing on OS X 10.5.7 due to '@' in ls output
Stephen Hansen me+pyt...@ixokai.io added the comment: I can confirm that this test has been failing on my slave, and that the patch fixes it. Recommend commit. Red is bad. -- assignee: - ronaldoussoren components: +Macintosh nosy: +ixokai, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7108 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11125] csv documentation should not use open() without close()
New submission from Eric Smith e...@trueblade.com: Many places open() is shown as a parameter to a csv method, but close() can't be called. This is not a practice we should be advocating. Better would be to show a 'with' statement, or at least a note explaining this isn't an ideal usage. -- assignee: docs@python components: Documentation keywords: easy messages: 127954 nosy: docs@python, eric.smith priority: normal severity: normal status: open title: csv documentation should not use open() without close() versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com