[issue22389] Add contextlib.redirect_stderr()

2014-10-10 Thread Berker Peksag
Berker Peksag added the comment: Good point. Patch updated. Thanks for the reviews! -- Added file: http://bugs.python.org/file36874/issue22389_v3.diff ___ Python tracker ___

[issue22533] Counter with no keys does not compare equal to Counter with keys which zero value

2014-10-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17667] Windows: build with "build_pgo.bat -2" fails to optimize python.dll

2014-10-10 Thread Zachary Ware
Zachary Ware added the comment: I think I'd rather see a blacklist than a whitelist; it should be much shorter and can be passed to regrtest with the "-x" option within build_pgo.bat. Since we officially discourage PGO with VS 2008 and 2010 (due to compiler bugs) anyway, marking this as low pr

[issue22515] Implement partial order on Counter

2014-10-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21907] Update Windows build batch scripts

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset f592a4073672 by Zachary Ware in branch 'default': Issue #21907: Try to make the pre-Vista Windows buildbots happier. https://hg.python.org/cpython/rev/f592a4073672 -- ___ Python tracker

[issue22389] Add contextlib.redirect_stderr()

2014-10-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: ncoghlan -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9949] os.path.realpath on Windows does not follow symbolic links

2014-10-10 Thread Zachary Ware
Zachary Ware added the comment: Daniel: It's taken two years, but I've reviewed your patch :). There are a few things that need to be addressed, but the basic change looks pretty good. If you're still interested in seeing this fixed, I look forward to reviewing an updated patch; otherwise, I

[issue22489] .gitignore file

2014-10-10 Thread Zachary Ware
Zachary Ware added the comment: Fixed, with a few changes based on the .hgignore file. Thanks for the patch, Robert. -- assignee: -> zach.ware resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement versions: +Python 3.5

[issue22489] .gitignore file

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f98d239db8c by Zachary Ware in branch 'default': Issue #22489: Update .gitignore to ignore Windows build output. https://hg.python.org/cpython/rev/5f98d239db8c -- nosy: +python-dev ___ Python tracker

[issue5305] imaplib should support international mailbox names

2014-10-10 Thread C Fraire
C Fraire added the comment: >> the twisted imap API is problematic for imaplib because twisted seems to >> expect its arguments to already be Python unicode. >Could you elaborate on this? As far as I can tell, it works fine: I wasn't addressing encode/decode specifically. Both twisted and Plo

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-10 Thread Berker Peksag
Changes by Berker Peksag : -- stage: test needed -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22559] [backport] ssl.MemoryBIO

2014-10-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: Since this is such a new feature (not even released in 3.x), I don't think we should put it in 2.7.9. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue22605] memcpy(NULL, NULL, 0) in array_new()

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4563fff4e099 by Benjamin Peterson in branch '3.4': prevent passing NULL to memcpy (closes #22605) https://hg.python.org/cpython/rev/4563fff4e099 New changeset 8165e44594c2 by Benjamin Peterson in branch 'default': merge 3.4 (closes #22605) https://h

[issue1669539] Add os.path.isrelative() and improve ntpath.isabs()

2014-10-10 Thread Zachary Ware
Zachary Ware added the comment: To kick this along a bit, do the following testcases seem like the right behavior to others, based on Mark Hammond's roadmap in msg51983? If there's some agreement, I'll work on getting a modernized patch put together. # currently (3.4) assertTrue(ntpath.isabs(

[issue14537] "Fatal Python error: Cannot recover from stack overflow." with SymPy test suite

2014-10-10 Thread R. David Murray
R. David Murray added the comment: Yes, it appears that the code does not exist in import.c any more. When I said "test case", I meant "unit test", sorry. -- ___ Python tracker

[issue16728] Missing cross-reference in sequence glossary entry

2014-10-10 Thread R. David Murray
R. David Murray added the comment: Looks like this was left open for post-commit review, but since no one has objected (and it looks fine to me) I'm going to close it. -- nosy: +r.david.murray resolution: -> fixed stage: commit review -> resolved status: open -> closed ___

[issue14537] "Fatal Python error: Cannot recover from stack overflow." with SymPy test suite

2014-10-10 Thread Aaron Meurer
Aaron Meurer added the comment: Or do you mean the code in CPython doesn't exist any more? -- ___ Python tracker ___ ___ Python-bugs-l

[issue14537] "Fatal Python error: Cannot recover from stack overflow." with SymPy test suite

2014-10-10 Thread Aaron Meurer
Aaron Meurer added the comment: The OP describes how to get the original code. Anyway, the issue was definitely fixed. -- ___ Python tracker ___

[issue21986] Idle: disable pickleability of user code objects

2014-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Code objects get wrapped in 3 tuple layers before being 'pickled', so a private dispatch is the easiet solution. Since copyreg.dispatch_table has only two items to copy, I pushed a version of the first patch. Since private dispatch tables are new in 3.3 and

[issue21986] Idle: disable pickleability of user code objects

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue14537] "Fatal Python error: Cannot recover from stack overflow." with SymPy test suite

2014-10-10 Thread R. David Murray
R. David Murray added the comment: This code fragment doesn't seem to exist any more. Since there's no test case, I'm going to close this. I presume it is no longer a problem for SymPy, since there's been no followup. -- nosy: +brett.cannon, r.david.murray resolution: -> out of date

[issue21986] Idle: disable pickleability of user code objects

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90c62e1f3658 by Terry Jan Reedy in branch '3.4': Issue #21986: Idle now matches interpreter in not pickling user code objects. https://hg.python.org/cpython/rev/90c62e1f3658 New changeset cb94764bf8be by Terry Jan Reedy in branch 'default': Merge wi

[issue5804] Add an 'offset' argument to zlib.decompress

2014-10-10 Thread R. David Murray
R. David Murray added the comment: Moving this from commit review back to no selection, since there doesn't yet seem to be an agreement on an API. -- nosy: +r.david.murray stage: commit review -> versions: +Python 3.5 -Python 3.2 ___ Python tracker

[issue22351] NNTP constructor exception leaves socket for garbage collector

2014-10-10 Thread Rishi
Rishi added the comment: patch updated based on comments. -- Added file: http://bugs.python.org/file36873/issue22351_2.patch ___ Python tracker ___ __

[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: They seem to have behaved! Congratulations, buildbots! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've committed the patch. Let's just see if the buildbots behave. -- ___ Python tracker ___ ___

[issue22604] assertion error in complex division

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c8f45caf697 by Antoine Pitrou in branch '3.4': Issue #22604: Fix assertion error in debug mode when dividing a complex number by (nan+0j). https://hg.python.org/cpython/rev/0c8f45caf697 New changeset af0104aed5b1 by Antoine Pitrou in branch 'defau

[issue15414] os.path.join behavior on Windows (ntpath.join) is not well documented

2014-10-10 Thread Zachary Ware
Zachary Ware added the comment: Committed, with better line wrapping. Thank you Dave Sawyer for the initial patch, and RDM for the review. -- ___ Python tracker ___

[issue15414] os.path.join behavior on Windows (ntpath.join) is not well documented

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05274a517b37 by Zachary Ware in branch '2.7': Issue #15414: Clean and correct the os.path.join docs. https://hg.python.org/cpython/rev/05274a517b37 New changeset c9c6082d4f9b by Zachary Ware in branch '3.4': Issue #15414: Clean and correct the os.pa

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50bedeffec2f by Terry Jan Reedy in branch '3.4': Issue 22603: add Francisco Fernández Castaño to ACKS. https://hg.python.org/cpython/rev/50bedeffec2f -- ___ Python tracker

[issue22606] Inconsistency between Python 2 and PyPy regarding future imports

2014-10-10 Thread Claudiu Popa
New submission from Claudiu Popa: Hi, The following code gives similar errors for both PyPy and Python 2 when called, but totally different AST objects. Given the following code, PyPy says that `print(4)` is an _ast.Print, while Python 2 believes that it is an _ast.Expr (which wraps a Call).

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-10-10 Thread Brett Cannon
Brett Cannon added the comment: Only ones left are: - fcntl - cmath Both no longer apply cleanly. -- ___ Python tracker ___ ___ Pyth

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7ab0884467e by Brett Cannon in branch 'default': Issue #20152: Port the array module to Argument Clinic. https://hg.python.org/cpython/rev/f7ab0884467e -- ___ Python tracker

[issue15414] os.path.join behavior on Windows (ntpath.join) is not well documented

2014-10-10 Thread R. David Murray
R. David Murray added the comment: I'd say it was definitely an improvement in terms of comprehensibility. -- ___ Python tracker ___ _

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Francisco Fernández Castaño
Francisco Fernández Castaño added the comment: Under Fernández it's ok. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15414] os.path.join behavior on Windows (ntpath.join) is not well documented

2014-10-10 Thread Zachary Ware
Changes by Zachary Ware : -- title: os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented -> os.path.join behavior on Windows (ntpath.join) is not well documented ___ Python tracker

[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-10-10 Thread Zachary Ware
Zachary Ware added the comment: Dave, your patch is a significant improvement on the accuracy of the current doc, but the whole paragraph seems somewhat haphazard and confusing to me. Here's my own attempt to clean it up, though I'm not certain just how much improvement it is :) -- n

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. Should you be alphabetized in our ACKS file under Ca... or Fe...? -- resolution: -> fixed stage: commit review -> resolved ___ Python tracker _

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: Please open a new issue, this one is closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b81443d9c64a by Terry Jan Reedy in branch '3.4': Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño. https://hg.python.org/cpython/rev/b81443d9c64a -- nosy: +python-dev ___ Python trac

[issue20010] time.strftime('%z') didn't make +HHMM return in windows xp

2014-10-10 Thread Martin Taibr
Martin Taibr added the comment: Same behavior on Windows 8.1. Possible workaround: >>> from datetime import datetime >>> from dateutil import tz >>> datetime.now(tz.tzlocal()).strftime('%z') '+0200' -- nosy: +martin-t ___ Python tracker

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for raising TypeError, but I think this should only be changed in 3.5, since we don't want to break code in a bugfix release. -- nosy: +pitrou ___ Python tracker __

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy nosy: +terry.reedy type: enhancement -> behavior versions: -Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-10 Thread Kevin Keating
Kevin Keating added the comment: I agree that None is an unwise value to pass in. Of the four different abspath implementations, though, one will treat None (or any falsey value) as an empty string, while the other three will raise an exception unless passed an actual str or bytes object. I

[issue22604] assertion error in complex division

2014-10-10 Thread Mark Dickinson
Mark Dickinson added the comment: Patch LGTM. > (is it the right result?) Difficult to tell :-). Complex arithmetic in general isn't well standardised. Annex G of the C standard is about as close I've seen. But it doesn't look terribly wrong. -- ___

[issue22605] memcpy(NULL, NULL, 0) in array_new()

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: If you initialize array with another empty array, then this code runs: memcpy(self->ob_item, other->ob_item, len * other->ob_descr->itemsize); But self->ob_item and other->ob_item are NULL in such case. Passing null pointer to memcpy() is undefined behavior e

[issue22605] memcpy(NULL, NULL, 0) in array_new()

2014-10-10 Thread Jakub Wilk
Jakub Wilk added the comment: The attached patch should fix the bug. -- keywords: +patch Added file: http://bugs.python.org/file36871/229023.patch ___ Python tracker ___

[issue22605] memcpy(NULL, NULL, 0) in

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk : -- components: Library (Lib) nosy: jwilk priority: normal severity: normal status: open title: memcpy(NULL, NULL, 0) in versions: Python 3.5 ___ Python tracker __

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- keywords: +patch Added file: http://bugs.python.org/file36870/subtest_in_range.diff ___ Python tracker ___

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the attached patch (the patch does reintroduce the bug in 'test_incref_decref_API' for testing purposes), it is possible to find the failing subtest rapidly: Get the number of subtests (35 subsets): $ export SUBTEST_RANGE="[]" $ ./python -m test -m test__

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-10 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9cee201388c9 by Petri Lehtinen in branch '2.7': Issue #11694: Raise ConversionError in xdrlib as documented https://hg.python.org/cpython/rev/9cee201388c9 New changeset 7ef6e5f53418 by Petri Lehtinen in branch '3.4': Issue #11694: Raise ConversionEr

[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file36869/c_quot_nan.patch ___ Python tracker __

[issue22575] bytearray documentation confuses string for unicode objects

2014-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the line to * If it is unicode, you must also give the encoding (and optionally, errors) parameters; bytearray() then converts the unicode to bytes using unicode.encode(). Thank you for the report, and for your work answering questions on SO --

[issue22575] bytearray documentation confuses string for unicode objects

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c75819f1d86 by Terry Jan Reedy in branch '2.7': Issue #22575: Revise bytearray entry for 2.7. https://hg.python.org/cpython/rev/0c75819f1d86 -- nosy: +python-dev ___ Python tracker

[issue19884] Importing readline produces erroneous output

2014-10-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22604] assertion error in complex division

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is the right result. >>> 0.0 / float('nan') nan -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue22558] Missing hint to source code - complete

2014-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Messages and patches can be unlinked from an issue (and that action recorded in the history list) but not edited. Proofread before clicking. Originally, only a few module docs had a source code link where the source code was thought to be especially useful.

[issue22557] Local import is too slow

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The issue is local imports, not imports of the locale module :-) -- title: Locale import is too slow -> Local import is too slow ___ Python tracker

[issue22559] [backport] ssl.MemoryBIO

2014-10-10 Thread Alex Gaynor
Alex Gaynor added the comment: Updated patch cherry-picks in some of the documentation updates that were pushed by Victor. -- Added file: http://bugs.python.org/file36868/issue22559.diff ___ Python tracker ___

[issue22557] Locale import is too slow

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Local import is too slow -> Locale import is too slow ___ Python tracker ___ ___ Python-bugs-lis

[issue22604] assertion error in complex division

2014-10-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor : -- title: IMAP4 UTF-7 support -> Add mUTF-7 codec (UTF-7 modified for IMAP) ___ Python tracker ___ ___ Pyt

[issue22598] IMAP4 UTF-7 support

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode nosy: +ezio.melotti, haypo ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #19421. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22604] assertion error in complex division

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: This only happens in debug mode: >>> complex(0.0, 0.0) / complex(float('nan'), 0.0) python: Objects/complexobject.c:98: _Py_c_quot: Assertion `b.imag != 0.0' failed. In release mode, this gives: >>> complex(0.0, 0.0) / complex(float('nan'), 0.0) (nan+nanj)

[issue22506] `dir` on Enum subclass doesn't expose parent class attributes

2014-10-10 Thread Ethan Furman
Ethan Furman added the comment: Yes, the 'huh' function would have to be in either AutoEnum or AddressSegment to be included in the dir of an AddressSegment member. Here's a shorter example: (this works) class SuperEnum(Enum): pass clas

[issue1703178] link_objects in setup.cfg crashes build

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue1703178] link_objects in setup.cfg crashes build

2014-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Valerie, I cannot review this. If Éric does not respond in a month or two, you might enquire on python-dev or core-mentorship lists. -- stage: test needed -> patch review versions: +Python 3.5 -Python 3.3 ___ Python

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It's because None quacks as empty string. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Py

[issue22506] `dir` on Enum subclass doesn't expose parent class attributes

2014-10-10 Thread Ram Rachum
Ram Rachum added the comment: Ethan: I'm very confused by your example. `huh` isn't even a method, why would it be included? Or are you saying "if it was a method"? I'm really not sure what your example is adding over mine, given that it's 10 times longer and more complex. I'm not sure why you

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ncoghlan stage: -> commit review type: crash -> enhancement ___ Python tracker ___ __

[issue22598] IMAP4 UTF-7 support

2014-10-10 Thread Raúl Cumplido
Changes by Raúl Cumplido : -- nosy: +raulcd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22506] `dir` on Enum subclass doesn't expose parent class attributes

2014-10-10 Thread Ethan Furman
Ethan Furman added the comment: Sample code: class AutoEnum(enum.Enum): """ Automatically numbers enum members starting from 1. Includes support for a custom docstring per member. """ __last_numb

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9f71bc6d897 by Brett Cannon in branch 'default': Issue #21052: Don't raise ImportWarning for sys.meta_path or https://hg.python.org/cpython/rev/d9f71bc6d897 -- nosy: +python-dev ___ Python tracker

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alternative solution of this issue would be to use "from builtins import open as _open" instead of "import builtins". -- nosy: +serhiy.storchaka ___ Python tracker _

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-10 Thread Brett Cannon
Brett Cannon added the comment: Fixed in https://hg.python.org/cpython/rev/d9f71bc6d897 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue21049] Warning at interpreter exit triggers flood of “ImportWarning: sys.meta_path is empty”

2014-10-10 Thread Brett Cannon
Brett Cannon added the comment: This has now been fixed in https://hg.python.org/cpython/rev/d9f71bc6d897 . Thanks to everyone who helped with the bug report! -- versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue22598] IMAP4 UTF-7 support

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please add a link to RFC? -- nosy: +serhiy.storchaka stage: -> needs patch ___ Python tracker ___ _

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2014-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Interpreter Core, Unicode -Library (Lib) nosy: +ezio.melotti, haypo, lemburg, loewis, serhiy.storchaka stage: -> needs patch versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Francisco Fernández Castaño
New submission from Francisco Fernández Castaño: >From the code example at >https://docs.python.org/3/library/contextlib.html#contextlib.ContextDecorator "logging.info('Entering: {}'.format(name)) NameError: name 'name' is not defined" name is referenced instead of self.name -- assign

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-10-10 Thread Matej Cepl
Matej Cepl added the comment: > Regardless of whether we add this to 2.7 or not, it should be an entirely > separate class. I personally feel this isn't a bug fix but a feature addition > for 2.7 so I'm -0.5 on adding it there. It's also not a security backport so > it doesn't fit into PEP 466

[issue19421] FileIO destructor imports indirectly the io module at exit

2014-10-10 Thread Martin Panter
Martin Panter added the comment: For the record, the python-dev thread about blocking imports is at . It sounded like the conclusion was that there shouldn’t be a problem importing a module at finalization. I am investigat

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22601] asyncio: loop.run_forever() should consume exception of the temporary task

2014-10-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-10 Thread Martin Panter
Martin Panter added the comment: I always assumed that None was a unwise value to pass to the “os.path” functions. Indeed, at the top of the documentation page it says they only accept bytes or (text) string parameters. Although returning a consistent error might be a sensible addition. -

[issue1621] Do not assume signed integer overflow behavior

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: RFC 2152 reads: A "+" character followed immediately by any character other than members of set B or "-" is an ill-formed sequence. "@" is not a member of B, so I would expect this to raise UnicodeDecodeError: >>> b'+@'.decode('UTF-7') '@' -- compon

[issue22428] asyncio: KeyboardInterrupt inside a coroutine causes AttributeError

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: > If the coroutine raises an exception which doesn't inherit from Exception > (but inherits from BaseException), run_until_complete() doesn't consume the > exception from the temporary task object I created the issue #22601 for this bug. -- _

[issue22601] asyncio: loop.run_forever() should consume exception of the temporary task

2014-10-10 Thread STINNER Victor
New submission from STINNER Victor: BaseEventLoop.run_forever() creates a temporary task when it gets a coroutine object. If the coroutine raises a base exception, it is stored in the temporary task (task.set_exception(exc)). run_forever() doesn't catch the exception, which is the expected beh

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: > There is no patch. Oh no :-( I revert all my local changes and I forgot to produce the patch... My change added a new sys._is_finalizing() function which exposes the private C variable "_Py_Finalizing". Well, here is a patch which implements the first optio

[issue22600] In Multiprocessing Queue() doesn't work with list : __.put(list) != __.get()

2014-10-10 Thread CALMET
New submission from CALMET: Hello, I have to find the right order of a list, for example try = [0,1,2,3,4,5,6,7,8,9] try = [0,1,2,3,4,5,6,7,9,8] try = [0,1,2,3,4,5,6,8,7,9] and so on... in this example there are factorial(10) = 3,6 million possible order to test. The results with be all the list

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: There is no patch. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: Errors in the traceback module (caused by linecache) are common when working on the asyncio module in debug mode. The asyncio tries to log exceptions at exit to help the debug to track bugs. It uses the garbage collector and destructors on objects. Example of

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: I created a more specific issue for destructortest.py: issue #22599. It's not directly related to asyncio. -- ___ Python tracker ___ __

[issue22428] asyncio: KeyboardInterrupt inside a coroutine causes AttributeError

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: > => IMO it's an issue in the traceback module. It may catch the AttributeError > on the call to linecache.getline(). I created the issue #22599 for this bug. -- ___ Python tracker

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread STINNER Victor
New submission from STINNER Victor: Attached destructortest.py script comes the issue #22480. It calls traceback.print_exception() at exit. The problem is that the call occurs late during Python finalization. The object was stored in the namespace of the main module. Currently, Python deletes

  1   2   >