[issue13451] sched.py: speedup cancel() method
Giampaolo Rodola' g.rod...@gmail.com added the comment: In attachment. Before the patch: 9.433167934417725 After the patch: 0.0016150474548339844 scheduler.queue and scheduler.empty should be modified in accordance (which I haven't done, it's just to give you an idea). -- Added file: http://bugs.python.org/file23753/cancel-later-approach.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13245] sched.py kwargs addition and default time functions
Mark Dickinson dicki...@gmail.com added the comment: +1 to kwargs support in sched. I've also ended up modifying sched.py to support this in the past. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []
Petri Lehtinen pe...@digip.org added the comment: getallmatchinheaders() is not documented, i.e. it's not part of the public API. Furthermore, it's only used by http.server.CGIHTTPRequestHandler, and the comment above it even says that it should be moved there. There are three options now: 1) Document the function to make it officially part of the public API 2) Rename and move the function to http.server 3) Leave it undocumented and just fix it In any case, the first thing that should be done is to add a test for CGIHTTPRequestHandler that fails with the current (broken) getallmatchinheaders() implementation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict
New submission from STINNER Victor victor.stin...@haypocalc.com: Error handling of PyUnicode_EncodeDecimal() is broken by design. The caller cannot know the size of the output buffer because each error handler produce a variable output, whereas the caller has to allocate this buffer and it is not possible to specify the size of the output buffer. I propose to raise a ValueError if the error handler is different than strict and do this change in Python 2.7, 3.2 and 3.3. In Python 2.7 code base, PyUnicode_EncodeDecimal() is always called with errors=NULL. In Python 3.x, the function is no more called. Attached patch is for Python 3.2. See also the issue #13093. -- components: Unicode files: encode_decimal_errors.patch keywords: patch messages: 148111 nosy: ezio.melotti, haypo, loewis, skrah priority: normal severity: normal status: open title: PyUnicode_EncodeDecimal: reject error handlers different than strict versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23754/encode_decimal_errors.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13245] sched.py kwargs addition and default time functions
Giampaolo Rodola' g.rod...@gmail.com added the comment: Checked in as f1a21f2e3bec and dc52db0fa2e5. Thanks. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13450] add assertions to implement the intent in ''.format_map test
Eric V. Smith e...@trueblade.com added the comment: I don't think the existing tests have any value. I might leave one of them, but I think I'll just use your new tests instead. akira: I'd like to add your name to the Misc/ACKS file, if it's not already there. What's your full name? Thanks for the bug report and patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13450 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the patch! The patch should also include tests for this case in Lib/test/test_re.py -- components: +Regular Expressions stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12759 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict
Stefan Krah stefan-use...@bytereef.org added the comment: I'm only using the function with the NULL error handler. If I had to use 'xmlcharrefreplace', presumably I'd overallocate 'output' for the worst case scenario: sizeof(#4294967295) per encoded character. It's hard to tell if people are using this feature. PyUnicode_EncodeDecimal() was always undocumented (#8646), but part of the official Unicode API. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13453] Tests and network timeouts
New submission from STINNER Victor victor.stin...@haypocalc.com: A lot of tests using the network are failing sometimes. They look like timeout or network failure. Example: == ERROR: test_storlines (test.test_ftplib.TestTLS_FTPClassMixin) -- Traceback (most recent call last): File /var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/test_ftplib.py, line 582, in test_storlines self.client.storlines('stor', f) File /var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/ftplib.py, line 824, in storlines conn.unwrap() File /var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/ssl.py, line 448, in unwrap s = self._sslobj.shutdown() socket.timeout: The read operation timed out -- components: Tests messages: 148116 nosy: haypo priority: normal severity: normal status: open title: Tests and network timeouts versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13453] Tests and network timeouts
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10318] make altinstall installs many files with incorrect shebangs
Éric Araujo mer...@netwok.org added the comment: Patch to PEP 8 attached. -- Added file: http://bugs.python.org/file23755/pep8-shebangs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12424] distutils2: extension section uses bad environment marker separator
Éric Araujo mer...@netwok.org added the comment: Does your latest patch address my second review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12424 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13440] Explain the status quo wins a stalemate principle in the devguide
Éric Araujo mer...@netwok.org added the comment: +1 -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13440 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13443] wrong links and examples in the functional HOWTO
Éric Araujo mer...@netwok.org added the comment: Broken links should obviously be fixed, either to their newer location if it can be found or to Web Archive links. I think that it’s a good thing to link to some outside articles and code from the official docs; we acknowledge that the stdlib is not the whole of the Python world and we put good writings/code into the spotlight. Here, even if the code is 2.x-only, the ideas and examples it contains can IMO still be valuable for readers, even if they can’t be directly used, so my vote is to keep them. -- nosy: +eric.araujo, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13443 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13448] PEP 3155 implementation
Éric Araujo mer...@netwok.org added the comment: Nothing to say; waiting for a doc update. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13224] Change str(x) to return only __qualname__ for some types
Éric Araujo mer...@netwok.org added the comment: PEP 3155 is accepted and makes str(cls) and str(function) as well as repr(cls) and repr(function) return the qualified name, which obsoletes part of this request. I haven’t checked if it has the same problem with Python methods. str(module) is not changed by the PEP. -- title: Change str(class) to return only the class name - Change str(x) to return only __qualname__ for some types ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names
Éric Araujo mer...@netwok.org added the comment: +1 on refusing the temptation to guess and to be half-working for some cases by accident. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3932 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13454] crash when deleting one pair from tee()
New submission from Pyry Pakkanen frostb...@suomi24.fi: Running the following results in a Segmentation fault on Ubuntu 11.10 64-bit with both python and python3. from itertools import * c = count() a,b = tee(c) for i in range(1000): next(a) del(b) -- messages: 148124 nosy: PyryP priority: normal severity: normal status: open title: crash when deleting one pair from tee() type: crash versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13454] crash when deleting one pair from tee()
STINNER Victor victor.stin...@haypocalc.com added the comment: tee() uses a linked-list of teedataobject. This list is destroyed by recursive calls to teedataobject_dealloc(). Extract of the gdb trace: #5 0x08171a8e in teedataobject_clear (tdo=0xad21b394) at ./Modules/itertoolsmodule.c:412 #6 0x08171b39 in teedataobject_dealloc (tdo=0xad21b394) at ./Modules/itertoolsmodule.c:421 #7 0x0805ed3d in _Py_Dealloc (op=itertools.tee_dataobject at remote 0xad21b394) at Objects/object.c:1676 #8 0x08171b16 in teedataobject_clear (tdo=0xad21b274) at ./Modules/itertoolsmodule.c:413 #9 0x08171b39 in teedataobject_dealloc (tdo=0xad21b274) at ./Modules/itertoolsmodule.c:421 #10 0x0805ed3d in _Py_Dealloc (op=itertools.tee_dataobject at remote 0xad21b274) at Objects/object.c:1676 #11 0x08171b16 in teedataobject_clear (tdo=0xad21b154) at ./Modules/itertoolsmodule.c:413 #12 0x08171b39 in teedataobject_dealloc (tdo=0xad21b154) at ./Modules/itertoolsmodule.c:421 #13 0x0805ed3d in _Py_Dealloc (op=itertools.tee_dataobject at remote 0xad21b154) at Objects/object.c:1676 #14 0x08171b16 in teedataobject_clear (tdo=0xad21b034) at ./Modules/itertoolsmodule.c:413 #15 0x08171b39 in teedataobject_dealloc (tdo=0xad21b034) at ./Modules/itertoolsmodule.c:421 #16 0x0805ed3d in _Py_Dealloc (op=itertools.tee_dataobject at remote 0xad21b034) at Objects/object.c:1676 #17 0x08171b16 in teedataobject_clear (tdo=0xad292ed4) at ./Modules/itertoolsmodule.c:413 #18 0x08171b39 in teedataobject_dealloc (tdo=0xad292ed4) at ./Modules/itertoolsmodule.c:421 #19 0x0805ed3d in _Py_Dealloc (op=itertools.tee_dataobject at remote 0xad292ed4) at Objects/object.c:1676 #20 0x08171b16 in teedataobject_clear (tdo=0xad292db4) at ./Modules/itertoolsmodule.c:413 #21 0x08171b39 in teedataobject_dealloc (tdo=0xad292db4) at ./Modules/itertoolsmodule.c:421 #22 0x0805ed3d in _Py_Dealloc (op=itertools.tee_dataobject at remote 0xad292db4) at Objects/object.c:1676 #23 0x08171b16 in teedataobject_clear (tdo=0xad292c94) at ./Modules/itertoolsmodule.c:413 -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13454] crash when deleting one pair from tee()
Ezio Melotti ezio.melo...@gmail.com added the comment: Confirmed on py3k, it doesn't seem to happen with smaller values. -- components: +Extension Modules nosy: +ezio.melotti, rhettinger stage: - test needed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13454] crash when deleting one pair from tee()
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Also, a check for NULL would not hurt in tee_next(): diff -r 1e0e821d2626 Modules/itertoolsmodule.c --- a/Modules/itertoolsmodule.c Fri Nov 04 22:17:45 2011 +0100 +++ b/Modules/itertoolsmodule.c Tue Nov 22 17:24:42 2011 +0100 @@ -475,6 +475,8 @@ if (to-index = LINKCELLS) { link = teedataobject_jumplink(to-dataobj); +if (link == NULL) +return NULL; Py_DECREF(to-dataobj); to-dataobj = (teedataobject *)link; to-index = 0; -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23756/750ca6da48f3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23749/c64a284f4309.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Jesús Cea Avión j...@jcea.es added the comment: - Line tracing is more efficient and corretly skip the last body line when the loop is done. - Trace new style classes deletion. - When creating new style classes, ignore internal classes. Show only user defined classes. - Solve a possible crash if we are tracing instance-delete-done and the deleted instance cascades a class delete (if it was the last reference to the class). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13224] Change str(x) to return only __qualname__ for some types
Guido van Rossum gu...@python.org added the comment: Are you sure? The way I read the PEP, it just said that str(cls) and str(func) should *use* qualname. That could mean returning 'function f.g.h at 0x1234' or 'class '__main__.C.D'. On Tue, Nov 22, 2011 at 7:27 AM, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: PEP 3155 is accepted and makes str(cls) and str(function) as well as repr(cls) and repr(function) return the qualified name, which obsoletes part of this request. I haven’t checked if it has the same problem with Python methods. str(module) is not changed by the PEP. -- title: Change str(class) to return only the class name - Change str(x) to return only __qualname__ for some types ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13450] add assertions to implement the intent in ''.format_map test
akira 4kir4...@gmail.com added the comment: TypeError tests can check that an implementation raises a correct exception type i.e., it doesn't raise ValueError prematurely on invalid format_string without checking that there is mapping argument. METH_O does it for CPython. I'm not sure how other implementations might behave. eric: I'd read http://docs.python.org/devguide/patch.html#preparation but I thought 4 lines are not worth it to change Misc/ACKS. Full pseudonym: Akira Li -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13450 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13455] Reorganize tracker docs in the devguide
New submission from Ezio Melotti ezio.melo...@gmail.com: The documentation about the bug tracker is sparse in a few different places. The devguide contains 4 pages: 1. http://docs.python.org/devguide/helptriage.html 2. http://docs.python.org/devguide/devrole.html 3. http://docs.python.org/devguide/triaging.html 4. http://docs.python.org/devguide/languishing.html There are two wiki pages: 5. http://wiki.python.org/moin/SubmittingBugs 6. http://wiki.python.org/moin/TrackerDocs/ And an additional page in the official docs: 7. http://docs.python.org/dev/py3k/bugs.html Some content is duplicated, 5 and 7 are similar, and 6 has the same content of 3 and 2. The idea is to have 2 pages about the tracker in the devguide: * A new tracker.rst page that includes all the information about the tracker except the description of the fields; * The old triaging.rst, that only describes the meaning of the fields. The attached patch groups this information in the new page, removing the old pages (1, 2, 4) and updating the index and toc. The content of the wiki pages (5 and 6) should be deleted and a pointer to the devguide should be added instead. The bugs page in the docs (7) should not contain all the steps necessary to register and open an issue IMHO, but just a short description and a link to the devguide. Currently the structure of the new page is: tracker.rst +-- Using the Issue Tracker | +-- Checking if a bug already exists | +-- Reporting an issue | +-- Helping Triage Issues | +-- Classifying Reports | +-- Reviewing Patches | +-- Finding an Issue You Can Help With | +-- Gaining the Developer Role on the Issue Tracker | +-- The Meta Tracker I mostly copy/pasted from other pages (e.g. Using the Issue Tracker is copied from 7), so this should be reorganized a bit. The things I would like to include here are: * how to search issues * how to report a new issue * how to classify issues * how to make reviews * how to find interesting issues * how to get the developer role * how to use the keyboard shortcuts It might be better to just list all these things, or group them in basic (searching/reporting) and advanced (everything else), or keep a step by step how to report a bug separate and just describe specific tasks here (like how to register/login/report). -- assignee: ezio.melotti components: Devguide files: issue13455.diff keywords: patch messages: 148131 nosy: brett.cannon, eli.bendersky, eric.araujo, ezio.melotti, ncoghlan, terry.reedy priority: normal severity: normal stage: needs patch status: open title: Reorganize tracker docs in the devguide Added file: http://bugs.python.org/file23757/issue13455.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13093] Redundant code in PyUnicode_EncodeDecimal()
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 52fecdc1c5d8 by Charles-François Natali in branch 'default': Issue #13093: Perform a real merge. http://hg.python.org/cpython/rev/52fecdc1c5d8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12156] test_multiprocessing.test_notify_all() timeout (1 hour) on FreeBSD 7.2
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ed2d3680f489 by Charles-François Natali in branch '2.7': Issue #12156: Skip test_multiprocessing on systems which don't support enough http://hg.python.org/cpython/rev/ed2d3680f489 New changeset 311bb5e65b02 by Charles-François Natali in branch '3.2': Issue #12156: Skip test_multiprocessing on systems which don't support enough http://hg.python.org/cpython/rev/311bb5e65b02 New changeset 439ac346b20b by Charles-François Natali in branch 'default': Issue #12156: Skip test_multiprocessing on systems which don't support enough http://hg.python.org/cpython/rev/439ac346b20b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12156 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13156] _PyGILState_Reinit assumes auto thread state will always exist which is not true.
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ba90839c4993 by Charles-François Natali in branch '3.2': Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the http://hg.python.org/cpython/rev/ba90839c4993 New changeset aa6ce09d2350 by Charles-François Natali in branch 'default': Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the http://hg.python.org/cpython/rev/aa6ce09d2350 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13156 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13156] _PyGILState_Reinit assumes auto thread state will always exist which is not true.
Charles-François Natali neolo...@free.fr added the comment: Alright, should be fixed now. Graham, thanks for the report! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13156 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13455] Reorganize tracker docs in the devguide
Antoine Pitrou pit...@free.fr added the comment: I think the reason these docs are scattered is that the devguide is a guide, not a reference manual. I don't think this patch makes sense: if the tracker really needed so much text to explain how it works, then the tracker would have a severe UI problem. Most people use bug trackers without ever reading a manual first. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13456] Providing a custom HTTPResponse class to HTTPConnection
New submission from R. David Murray rdmur...@bitdance.com: The doc string for HTTPConnection.getresponse mentions (in broken English) that the instance's response_class attribute determines what class gets instantiated for a response. The docs do not mention this attribute, nor any other way to control what class is used. Since this attribute already exists and is mentioned in the doc string, can we consider this a doc error and just document it? -- assignee: docs@python components: Documentation messages: 148136 nosy: docs@python, orsenthil, r.david.murray priority: normal severity: normal status: open title: Providing a custom HTTPResponse class to HTTPConnection versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13455] Reorganize tracker docs in the devguide
Petri Lehtinen pe...@digip.org added the comment: It seems to me there's not that much text on how the tracker itself works. Only sections Checking if a bug already exists and Reporting an issue have this kind of information. The text in these sections seems to be mostly from http://docs.python.org/bugs.html, so it's not new content. Other sections mostly deal with the way the tracker is used or should be used for the development of CPython. I like the idea of this patch. As Antoine said, people usually know how to use web applications nowadays, so moving the info from http://docs.python.org/bugs.html to devguide (replacing it with a shorter description) sounds good. -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []
Petri Lehtinen pe...@digip.org added the comment: 4) Deprecate the function to be removed in 3.4 or 3.5 and fix it to always return []. This way we won't break any 3.0-3.2 code that is using the function, but the users of such code will start to get DeprecationWarnings in 3.3. There's no meaningful way to fix the function correctly, as the original header data isn't stored anywhere in HTTPMessage or its base class email.message.Message. The function is also obsolete: the get_all() method of email.message.Message can be used. @stachjankowski: How did you find this issue? Are you porting from 2.x to 3.x or have new 3.x code that uses this function? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13457] Display module name as string in `ImportError`
New submission from Ram Rachum r...@rachum.com: Recently I was confronted with a mysterious error: ImportError: No module named datetime Firther investigation revealed that the cause was a pickling problem that ran `__import__('datetime\r')`. If `ImportError` would have shown the module name as a string, there would be no ambiguity: ImportError: No module named 'datetime\r' -- components: Interpreter Core messages: 148140 nosy: cool-RR priority: normal severity: normal status: open title: Display module name as string in `ImportError` versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13457 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13457] Display module name as string in `ImportError`
Changes by Ram Rachum r...@rachum.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13457 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13457] Display module name as string in `ImportError`
Brian Curtin br...@python.org added the comment: 3.3 will be adding an attribute which would have datetime\r here. See #1559549, which might make this a duplicate. You shouldn't (have to) rely on parsing the exception string. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13457 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output .pyd name in error message of ImportError when DLL load fails
Changes by Brian Curtin br...@python.org: -- assignee: - brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13457] Display module name as string in `ImportError`
Changes by Ram Rachum r...@rachum.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13457 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm only using the function with the NULL error handler. I don't think that anyone uses it without something else. The function is used to prepare a string input for a function converting a string to an integer. I don't see how xmlcharrefreplace can be useful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13436] compile() doesn't work on ImportFrom with level=None
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ffcdfc534942 by Amaury Forgeot d'Arc in branch '3.2': Issue #13436: Fix a bogus error message when an AST object was passed http://hg.python.org/cpython/rev/ffcdfc534942 New changeset 470f7d7c57ce by Amaury Forgeot d'Arc in branch '3.2': Issue #13436: commit regenerated Python-ast.c http://hg.python.org/cpython/rev/470f7d7c57ce -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13436] compile() doesn't work on ImportFrom with level=None
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I fixed the bogus error message, but level=None is still not allowed, whereas the docs promise that optional values can be None. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13415] del os.environ[key] ignores errors
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3e892f428278 by Victor Stinner in branch '3.2': Issue #13415: os.unsetenv() doesn't ignore errors anymore. http://hg.python.org/cpython/rev/3e892f428278 New changeset aa55b7dc43f7 by Victor Stinner in branch 'default': (Merge 3.2) Issue #13415: os.unsetenv() doesn't ignore errors anymore. http://hg.python.org/cpython/rev/aa55b7dc43f7 New changeset 53cf6f9f374e by Victor Stinner in branch '2.7': Issue #13415: os.unsetenv() doesn't ignore errors anymore. http://hg.python.org/cpython/rev/53cf6f9f374e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13436] compile() doesn't work on ImportFrom with level=None
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2e5506d9a079 by Victor Stinner in branch '3.2': Issue #13436: Fix unsetenv() test on Windows http://hg.python.org/cpython/rev/2e5506d9a079 New changeset 029ad97883ef by Victor Stinner in branch 'default': (Merge 3.2) Issue #13436: Fix unsetenv() test on Windows http://hg.python.org/cpython/rev/029ad97883ef New changeset e66ef9fa55de by Victor Stinner in branch '2.7': Issue #13436: Fix unsetenv() test on Windows http://hg.python.org/cpython/rev/e66ef9fa55de -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13453] Tests and network timeouts
STINNER Victor victor.stin...@haypocalc.com added the comment: test_urllib2net test test_urllib2net failed -- Traceback (most recent call last): File /usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/test/test_urllib2net.py, line 195, in test_sites_no_connection_close req = urllib2.urlopen(URL) File /usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/urllib2.py, line 126, in urlopen return _opener.open(url, data, timeout) File /usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/urllib2.py, line 394, in open response = self._open(req, data) File /usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/urllib2.py, line 412, in _open '_open', req) File /usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/urllib2.py, line 372, in _call_chain result = func(*args) File /usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/urllib2.py, line 1201, in http_open return self.do_open(httplib.HTTPConnection, req) File /usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/urllib2.py, line 1171, in do_open raise URLError(err) URLError: urlopen error [Errno 4] Non-recoverable failure in name resolution Re-running test 'test_urllib2net' in verbose mode test_custom_headers (test.test_urllib2net.OtherNetworkTests) ... ok test_file (test.test_urllib2net.OtherNetworkTests) ... ok test_fileno (test.test_urllib2net.OtherNetworkTests) ... ok test_ftp (test.test_urllib2net.OtherNetworkTests) ... ok test_sites_no_connection_close (test.test_urllib2net.OtherNetworkTests) ... ok test_urlwithfrag (test.test_urllib2net.OtherNetworkTests) ... ok test_close (test.test_urllib2net.CloseSocketTest) ... ok test_ftp_basic (test.test_urllib2net.TimeoutTest) ... ok test_ftp_default_timeout (test.test_urllib2net.TimeoutTest) ... ok test_ftp_no_timeout (test.test_urllib2net.TimeoutTest) ... ok test_ftp_timeout (test.test_urllib2net.TimeoutTest) ... ok test_http_basic (test.test_urllib2net.TimeoutTest) ... ok test_http_default_timeout (test.test_urllib2net.TimeoutTest) ... ok test_http_no_timeout (test.test_urllib2net.TimeoutTest) ... ok test_http_timeout (test.test_urllib2net.TimeoutTest) ... ok -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13453] Tests and network timeouts
STINNER Victor victor.stin...@haypocalc.com added the comment: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%202.7/builds/405/steps/test/logs/stdio -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13453] Tests and network timeouts
STINNER Victor victor.stin...@haypocalc.com added the comment: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/2435/steps/test/logs/stdio Re-running test 'test_poplib' in verbose mode test_apop (test.test_poplib.TestPOP3Class) ... ok test_dele (test.test_poplib.TestPOP3Class) ... ok test_exceptions (test.test_poplib.TestPOP3Class) ... ok test_getwelcome (test.test_poplib.TestPOP3Class) ... ok test_list (test.test_poplib.TestPOP3Class) ... ok test_noop (test.test_poplib.TestPOP3Class) ... ok test_pass_ (test.test_poplib.TestPOP3Class) ... ok test_quit (test.test_poplib.TestPOP3Class) ... ok test_retr (test.test_poplib.TestPOP3Class) ... ok test_rpop (test.test_poplib.TestPOP3Class) ... ok test_stat (test.test_poplib.TestPOP3Class) ... ok test_top (test.test_poplib.TestPOP3Class) ... ok test_uidl (test.test_poplib.TestPOP3Class) ... ok test_user (test.test_poplib.TestPOP3Class) ... ok testTimeoutDefault (test.test_poplib.TestTimeouts) ... ERROR testTimeoutNone (test.test_poplib.TestTimeouts) ... ok testTimeoutValue (test.test_poplib.TestTimeouts) ... ok test__all__ (test.test_poplib.TestPOP3_SSLClass) ... ok test_apop (test.test_poplib.TestPOP3_SSLClass) ... ok test_context (test.test_poplib.TestPOP3_SSLClass) ... ok test_dele (test.test_poplib.TestPOP3_SSLClass) ... ok test_exceptions (test.test_poplib.TestPOP3_SSLClass) ... ok test_getwelcome (test.test_poplib.TestPOP3_SSLClass) ... ok test_list (test.test_poplib.TestPOP3_SSLClass) ... ok test_noop (test.test_poplib.TestPOP3_SSLClass) ... ok test_pass_ (test.test_poplib.TestPOP3_SSLClass) ... ok test_quit (test.test_poplib.TestPOP3_SSLClass) ... ok test_retr (test.test_poplib.TestPOP3_SSLClass) ... ok test_rpop (test.test_poplib.TestPOP3_SSLClass) ... ok test_stat (test.test_poplib.TestPOP3_SSLClass) ... ok test_top (test.test_poplib.TestPOP3_SSLClass) ... ok test_uidl (test.test_poplib.TestPOP3_SSLClass) ... ok test_user (test.test_poplib.TestPOP3_SSLClass) ... ok == ERROR: testTimeoutDefault (test.test_poplib.TestTimeouts) -- Traceback (most recent call last): File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_poplib.py, line 348, in testTimeoutDefault pop = poplib.POP3(localhost, self.port) File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/poplib.py, line 84, in __init__ self.sock = self._create_socket(timeout) File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/poplib.py, line 90, in _create_socket return socket.create_connection((self.host, self.port), timeout) File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/socket.py, line 405, in create_connection raise err File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/socket.py, line 396, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 146] Connection refused -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output .pyd name in error message of ImportError when DLL load fails
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13453] Tests and network timeouts
STINNER Victor victor.stin...@haypocalc.com added the comment: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%202.7/builds/732/steps/test/logs/stdio test test_telnetlib failed -- Traceback (most recent call last): File /export/home/buildbot/64bits/2.7.cea-indiana-amd64/build/Lib/test/test_telnetlib.py, line 230, in test_read_eager_B self._test_read_any_eager_B('read_eager') File /export/home/buildbot/64bits/2.7.cea-indiana-amd64/build/Lib/test/test_telnetlib.py, line 215, in _test_read_any_eager_B telnet = telnetlib.Telnet(HOST, self.port) File /export/home/buildbot/64bits/2.7.cea-indiana-amd64/build/Lib/telnetlib.py, line 209, in __init__ self.open(host, port, timeout) File /export/home/buildbot/64bits/2.7.cea-indiana-amd64/build/Lib/telnetlib.py, line 225, in open self.sock = socket.create_connection((host, port), timeout) File /export/home/buildbot/64bits/2.7.cea-indiana-amd64/build/Lib/socket.py, line 571, in create_connection raise err error: [Errno 146] Connection refused -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13224] Change str(x) to return only __qualname__ for some types
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13415] del os.environ[key] ignores errors
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, it looks like unsetenv() has no return value on Mac OS X Tiger: http://www.python.org/dev/buildbot/all/builders/PPC%20Tiger%202.7/builds/100/steps/compile/logs/stdio ./Modules/posixmodule.c: In function 'posix_unsetenv': ./Modules/posixmodule.c:7052: error: void value not ignored as it ought to be make: *** [Modules/posixmodule.o] Error 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23758/a9f4ae43fd85.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23756/750ca6da48f3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Jesús Cea Avión j...@jcea.es added the comment: - Added documentación. - Change sys.trace_capabilities to an external dtrace extension module. I don't care about Sun/Apple compatibility. The new probes are far more extensive, and they should be the new standard. The code is tested under Solaris 10 x86 and x86-64. Could someone possibly test under Solaris SPARC 32/64 bits, and other platforms with dtrace support, like *bsd, mac, etc?. PS: This code is for 2.7, because I think it is important to have a patch for interested parties to include in their python distributions. The plan is to integrate natively in 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Chris Miles miles.ch...@gmail.com: -- nosy: -chrismiles ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11682] PEP 380 reference implementation for 3.3
Zbyszek Szmek zbys...@in.waw.pl added the comment: Updated doc patch 0001-2.diff: following ncoghlan's request, the bulk of yield documentation is kept in expressions.rst, and simple_stmts.rst mostly refers to the other one. (In previous version it was the other way around). After doing this change, I still think that it is better to have most of the documentation in the _statement_ part, and keep the _expression_ part relatively simple. The reason is that yield does more than just return a value, but also throws exceptions, suspends execution, etc. This is detached from the fact that is can be used in an expression. Unfortunately yield as an expression is the only case where a statement can be used in an expression. Therefore there aren't any other cases which could be used as a guide. -- Added file: http://bugs.python.org/file23759/0001-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13458] _ssl memory leak in _get_peer_alt_names
New submission from Robert Xiao nneon...@gmail.com: _ssl.c has a memory leak in _get_peer_alt_names. The `names' object is initialized here: Modules/_ssl.c:601: if (method-it) names = (GENERAL_NAMES*) (ASN1_item_d2i(NULL, p, ext-value-length, ASN1_ITEM_ptr(method-it))); else names = (GENERAL_NAMES*) (method-d2i(NULL, p, ext-value-length)); However, `names' is not freed after use, so it simply leaks. Trivial patch: --- a/Modules/_ssl.c2011-09-03 12:16:46.0 -0400 +++ b/Modules/_ssl.c2011-11-22 19:41:12.0 -0400 @@ -679,6 +679,8 @@ } Py_DECREF(t); } + +sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free); } BIO_free(biobuf); if (peer_alt_names != Py_None) { I tested this with a private certificate containing a subjectAltName field, and the following code: import ssl, socket sock = ssl.wrap_socket(socket.socket(), cert_reqs=ssl.CERT_REQUIRED) sock.connect(('localhost', 443)) for i in range(10): x=sock._sslobj.peer_certificate() Before this change, Python's memory usage would continually increase to about 45MB at the end of the loop. After this change, the memory usage stays constant at around 6MB. -- components: Library (Lib) messages: 148154 nosy: nneonneo priority: normal severity: normal status: open title: _ssl memory leak in _get_peer_alt_names type: resource usage versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13444] closed stdout causes error on stderr when the interpreter unconditionally flushes on shutdown
Antoine Pitrou pit...@free.fr added the comment: I think closing stdout is a legitimate desire so, yes, I would consider it a bug if we print an error in that case. A patch could either first check the closed attribute, or silence the ValueError. -- stage: - needs patch type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13444 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13458] _ssl memory leak in _get_peer_alt_names
Robert Xiao nneon...@gmail.com added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file23760/ssl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13458] _ssl memory leak in _get_peer_alt_names
Robert Xiao nneon...@gmail.com added the comment: Also applies to Python 2.7. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13458] _ssl memory leak in _get_peer_alt_names
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12328] multiprocessing's overlapped PipeConnection on Windows
Antoine Pitrou pit...@free.fr added the comment: Here is an updated patch (pipe_poll_fix.patch) which should be applied on top of sigint_event.patch. It fixes the problems with PipeConnection.poll() and Queue.empty() and makes PipeListener.accept() use overlapped I/O. This should make all the pipe releated blocking functions/methods interruptible on Windows. I have the feeling that if we have to call GetLastError() at the Python level, then there's something wrong with the APIs we're exposing from the C extension. I see you check for ERROR_OPERATION_ABORTED. Is there any situation where this can happen? Also, it seems strange to call ov.cancel() and then ov.GetOverlappedResult(). AFAICT, those two operations should be mutually exclusive: you call the former if e.g. WaitForMultipleObjects raised an exception, the latter otherwise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10318] make altinstall installs many files with incorrect shebangs
Nick Coghlan ncogh...@gmail.com added the comment: Hmm, my initial reaction is that that specific wording is stronger than I had in mind - there's nothing really wrong with having a shebang line and execute bit set on a top level module and symlinking it from /usr/bin. The problem is that we're doing those things for modules that we *don't* install as binaries, and that's silly (particularly when the shebang lines are wrong on altinstall). However, that concern can specifically by addressed by moving the new section down to be a subheading in the Rules that apply only to the standard library section. I'd also mention the justification that this is due to such shebang lines creating a maintenance problem for handling parallel installations of different Python versions. Also, with PEP 397 a viable candidate, we may as well make the wording OS neutral. Something like: === Executable Files and Shebang Lines Standard library modules (including test modules) should not be flagged as executable files nor contain a shebang line. Including shebang lines in standard library modules is an issue, as they create a maintenance problem when multiple versions of Python are installed in parallel. The easiest way to avoid accidentally invoking the wrong version of Python is to simply not include such lines at all. If a module provides command-line functionality, it can be used with ``python -m module`` or via a small script (in a different file) that imports the module and calls one of its functions (e.g. the ``pydoc`` script imports the ``pydoc`` module and calls ``pydoc.cli()``). Any installed scripts should use a shebang line of the form:: #!/usr/bin/env pythonX.Y where ``X.Y`` is the specific Python version being installed. Updating these lines to the correct Python version should be automated, either as part of the installation process or as part of the version update process (see PEP 101). === The PEP 8 update should be run by the wider audience of python-dev before it gets committed, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13455] Reorganize tracker docs in the devguide
Nick Coghlan ncogh...@gmail.com added the comment: Documenting the tracker UI itself isn't the big issue - what is useful (and what I think Ezio is getting at) is having a single place where newcomers can get a better idea of how we *use* the tracker. If someone just wants to report a bug, then sure, they shouldn't need to read the dev guide (so I disagree with the idea of making any significant changes to the bugs page in the docs), but making it easier for newcomers to learn the ropes is the main reason we have a devguide at all, so I'm definitely +1 on the general idea. It would also give us a place to document the auto-linkification rules (similar to what was done recently for the post-commit hooks). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13458] _ssl memory leak in _get_peer_alt_names
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 80d491aaeed2 by Antoine Pitrou in branch '3.2': Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName. http://hg.python.org/cpython/rev/80d491aaeed2 New changeset 3b5fef34c8c7 by Antoine Pitrou in branch 'default': Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName. http://hg.python.org/cpython/rev/3b5fef34c8c7 New changeset 61a5d44020cd by Antoine Pitrou in branch '2.7': Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName. http://hg.python.org/cpython/rev/61a5d44020cd -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13458] _ssl memory leak in _get_peer_alt_names
Antoine Pitrou pit...@free.fr added the comment: Patch committed, thank you. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11682] PEP 380 reference implementation for 3.3
Nick Coghlan ncogh...@gmail.com added the comment: *Any* expression can be used as a standalone statement and (since PEP 352 was implemented) that now applies to 'yield' as well. PEP 352 fundamentally changed the way yield was conceptualised within the language - thinking of it as a statement that can be used as an expression is just plain *wrong*. It's now just an expression that happens to have a couple of special cases in the grammar to allow the parentheses to be skipped when they're distracting rather than helpful. That is, the only reason the yield statement still exists as a separate entity is to allow us to drop the otherwise mandatory parentheses: (yield val)# yield expression as statement yield val # yield statement -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13459] logger.propagate=True behavior clarification
New submission from Mike Fogel m...@fogel.ca: Hi, there's been a fair amount of confusion over the interaction between logger.propagate and the ancestor logger's handlers and level. http://bugs.python.org/issue7535 http://bugs.python.org/issue8327 http://bugs.python.org/issue9606 I think most this confusion could be avoided if the documentation for logger.propagate were expanded to explain clearly what happens when propagate evaluates to True - right now it just explains clearly what happens when it evaluates to False. Attached is a documentation patch that does this. Thanks for your consideration! -- assignee: docs@python components: Documentation files: logger_propagate_doc.diff keywords: patch messages: 148164 nosy: docs@python, mfogel, vinay.sajip priority: normal severity: normal status: open title: logger.propagate=True behavior clarification versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file23761/logger_propagate_doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13460] urllib methods should demand unicode, instead demand str
New submission from Tyler Starke prof.eb...@gmail.com: It seems bad practice for urllib methods to demand a str instance and they should demand a unicode instance. By demanding a str instance the default behavior is too demanding, for the web space it is being used, for the English language. We would want Python to extend beyond English when it uses urllib Currently I am encoding the unicode passed with 'utf-8' and that works. -- components: Library (Lib), Unicode messages: 148165 nosy: Tyler.Starke, ezio.melotti priority: normal severity: normal status: open title: urllib methods should demand unicode, instead demand str type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13460] urllib methods should demand unicode, instead demand str
R. David Murray rdmur...@bitdance.com added the comment: I suspect you want to be using Python3, then. Although it is nowhere near as simple as that...even with Python3 you still sometimes have to deal with the fact that the wire protocol is bytes. -- nosy: +r.david.murray resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13460] urllib methods should demand unicode, instead demand str
Tyler Starke prof.eb...@gmail.com added the comment: well that was closed fast. I noticed in the docs that Python 3 demands a str type also. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13460] urllib methods should demand unicode, instead demand str
Tyler Starke prof.eb...@gmail.com added the comment: Nevermind. I had to download the source to see that it encodes to 'utf-8', or a passed encoding method, in the methods that are causing problems in 2.6.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13439] turtle docstring for onkeyrelease references onkey, not onkeyrelease
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13439] turtle docstring for onkeyrelease references onkey, not onkeyrelease
Petri Lehtinen pe...@digip.org added the comment: onkey and onkeyrelease are the same function, so you still get exactly the same behavior with the example in the docstring. This also makes it hard to have different docstrings for them. Closing as wontfix. -- assignee: - docs@python components: +Documentation nosy: +docs@python, gregorlingl resolution: - wont fix stage: - committed/rejected status: open - closed type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6407] multiprocessing Pool should allow custom task queue
Sterling Windmill sterl...@ampx.net added the comment: I would also like to see this functionality as I'm currently using more memory than I'd like when using multiprocessing.Pool -- nosy: +swindmill ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6407] multiprocessing Pool should allow custom task queue
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com