[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I forget how to get the third, micro number. tkinter.Tcl().call('info', 'patchlevel') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20167 ___

[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On 3.5 the issue is gone, but on 3.4 and 2.7 following traceback are generated: $ ./python -m idlelib.idle Lib/decimal.py Traceback (most recent call last): File /home/serhiy/py/cpython-3.4/Lib/runpy.py, line 170, in _run_module_as_main __main__,

[issue22580] PyUnicode_Tailmatch documentation does not match signature

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks rather as a bug in C code. There is no need to return Py_ssize_t instead of int. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22580

[issue20167] Exception on IDLE closing

2014-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The above appears to be a system-specific open issue, not a close issue. So it must be a different issue. On my Win7 F:\Python\dev\4\py34\PCbuildpython_d -m idlelib ../Lib/decimal.py close after open with freshly built 3.4.2+ F:\Python\dev\4\py34\PCbuild

[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In any case, the traceback makes no sense. Before self.color_breakpoint_text() in __init__ are 3 self.text.bind statements. So self.text = None seems implausible. The code runs up to self.text.update() in restore_file_breaks() and runs further only after

[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changing update() to update_idletasks() fixes the issue. But we should investigate why all works on 3.5 and is there downside of this change. -- ___ Python tracker rep...@bugs.python.org

[issue22493] Deprecate the use of flags not at the start of regular expression

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: That sounds a bit random. It wouldn't totally address the discrepancy with regex, would it? No, it will not totally address the discrepancy with regex, but at least it will allow as to change the behavior of flags in subpatterns. And we always can

[issue22580] PyUnicode_Tailmatch documentation does not match signature

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: It looks rather as a bug in C code. There is no need to return Py_ssize_t instead of int. Oh yes, you're right. A Py_ssize_t to return -1, 0 or 1 is overkill :-) But PyUnicode_Tailmatch() is now part of the stable ABI, the inefficient return type is not a

[issue22594] Add a link to the regex module in re documentation

2014-10-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The regex module is purposed as a replacement of standard re module. Of course we fix re bugs, but for now regex is more bugfree. Even after fixing all open re bugs, regex will remain more featured. It would be good to add a link to regex in re

[issue1519638] Unmatched Group issue - workaround

2014-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1519638 ___ ___

[issue22584] Get rid of SRE character tables

2014-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22584 ___ ___

[issue22595] F5 shortcut key not working in IDLE for OSX

2014-10-10 Thread Mc128k
New submission from Mc128k: Hi I am using the latest version of python and IDLE, and when I edit a file and I press the key F5 it runs fine in the other window, while if I do it inside the IDLE command line it just prints the character  (which cannot be seen in the browser here). Using the

[issue22595] F5 shortcut key not working in IDLE for OSX

2014-10-10 Thread Mc128k
Mc128k added the comment: I'm sorry, the menu confused me. the command line has no such menu, it was showing the editor menu with the IDLE window on top. False alarm. -- resolution: - not a bug status: open - closed ___ Python tracker

[issue19380] Optimize parsing of regular expressions

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1adeac2a8714 by Serhiy Storchaka in branch 'default': Issue #19380: Optimized parsing of regular expressions. https://hg.python.org/cpython/rev/1adeac2a8714 -- nosy: +python-dev ___ Python tracker

[issue22584] Get rid of SRE character tables

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07b7b587837f by Serhiy Storchaka in branch 'default': Issue #22584: Got rid of character tables in _sre.c and use standard macros https://hg.python.org/cpython/rev/07b7b587837f -- nosy: +python-dev ___

[issue1519638] Unmatched Group issue - workaround

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd2f1ea04025 by Serhiy Storchaka in branch 'default': Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub() https://hg.python.org/cpython/rev/bd2f1ea04025 -- nosy: +python-dev

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: That was really fast Victor! I confirm that the '-R 23:23' refleak test does not crash any more here after changeset 5d87a6b38422. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22588

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: That was really fast Victor! I modified test_capi to only run one testcase, and I modified the testcase which caused the issue to run a subset of tests. By dichotomy, I found that only one function caused the fatal error. Does anyone know how to automatize

[issue1519638] Unmatched Group issue - workaround

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Antoine. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1519638

[issue19380] Optimize parsing of regular expressions

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your reviews Yury, Josh, and Antoine. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19380

[issue22584] Get rid of SRE character tables

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Antoine. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22584

[issue22578] Add additional attributes to re.error

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with the tip after issue19380 changes. -- Added file: http://bugs.python.org/file36860/re_error_attrs4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22578

[issue1703178] link_objects in setup.cfg crashes build

2014-10-10 Thread Valerie Lambert
Valerie Lambert added the comment: Here is a simple one-line-fix patch with a test. Except for the libraries option, other options separate using ':'. The documentation didn't seem to say much, so I wasn't sure if link_objects should be consistent with that or if it should follow libraries's

[issue22591] Drop support of MS-DOS

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: I hope that MS_WINDOWS is also defined when Python is compiled by the Borland C compiler or OpenWatcom. IMO if it's not the case, it's a bug and it should be fixed. It means that my patch drop_msdos_support.patch only drops support for the DJGPP compiler in

[issue22591] Drop support of MS-DOS

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22591 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22591] Drop support of MS-DOS

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1605d2508af by Victor Stinner in branch 'default': Issue #22591: Drop support of MS-DOS https://hg.python.org/cpython/rev/a1605d2508af -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue22591] Drop support of MS-DOS (DJGPP compiler)

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed title: Drop support of MS-DOS - Drop support of MS-DOS (DJGPP compiler) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22591

[issue22596] support.transient_internet() doesn't catch connection refused errors

2014-10-10 Thread Berker Peksag
New submission from Berker Peksag: This issue is similar to issue 22289. == ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests) (url='ftp://ftp.debian.org/debian/README')

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

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: '%(eggs)s %s' % {'eggs': 'ham'} Traceback (most recent call last): File stdin, line 1, in module TypeError: not enough arguments for format string '%s %(eggs)s' % {'eggs': 'ham'} {'eggs': 'ham'} ham I would expect a raised exception also in the latter case.

[issue22598] IMAP4 UTF-7 support

2014-10-10 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: Looks like there is consensus to add mUTF-7 or imap4 UTF-7 to the codec module for Python 3.5. Details in https://mail.python.org/pipermail/python- dev/2014-October/136601.html -- assignee: jcea messages: 228979 nosy: jcea priority: normal

[issue5305] imaplib should support international mailbox names

2014-10-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: First step is to provide mUTF-7 in Python 3.5. Then we can try to update imaplib. I am specially worried about the points cfraire raises in http://bugs.python.org/issue5305#msg151859. Lets see. -- dependencies: +IMAP4 UTF-7 support

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54402b25f0b9 by Victor Stinner in branch '3.4': Issue #22564: ssl doc: fix typos https://hg.python.org/cpython/rev/54402b25f0b9 New changeset 61e52fda1006 by Victor Stinner in branch '3.4': Issue #22564: ssl doc: document read(), write(), pending,

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

2014-10-10 Thread Eric V. Smith
Eric V. Smith added the comment: This is a duplicate of issue 1467929. -- nosy: +eric.smith resolution: - duplicate stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22597

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61fbd3d5c307 by Victor Stinner in branch '3.4': Issue #22564: ssl doc: mention asyncio in the non-blocking section https://hg.python.org/cpython/rev/61fbd3d5c307 New changeset 11ad670ca663 by Victor Stinner in branch 'default': Issue #22564: ssl

[issue1467929] %-formatting and dicts

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1467929 ___ ___ Python-bugs-list mailing list

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, I think I addressed most of my remarks and I consider the issue as done. For total cleanness maybe the constructor should raise a TypeError if server_hostname is passes as a bytes. Please open a new issue to address this point. -- resolution:

[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-10-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Remi. -- assignee: - berker.peksag nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed type: - behavior versions: +Python 3.4 ___ Python tracker

[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac55331c1df6 by Berker Peksag in branch '3.4': Issue #21456: Skip two tests in test_urllib2net.py if _ssl module not present. https://hg.python.org/cpython/rev/ac55331c1df6 New changeset 470ea66f5bee by Berker Peksag in branch 'default': Issue

[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 rep...@bugs.python.org

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22480

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22599 ___ ___ Python-bugs-list

[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

[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 option

[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

[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. --

[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') '@' -- components:

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

2014-10-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22597 ___ ___ Python-bugs-list mailing

[issue1621] Do not assume signed integer overflow behavior

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1621 ___ ___ Python-bugs-list mailing list

[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.

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

2014-10-10 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22601 ___ ___ Python-bugs-list

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

2014-10-10 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22599 ___ ___ Python-bugs-list

[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 https://mail.python.org/pipermail/python-dev/2013-October/129907.html. It sounded like the conclusion was that there shouldn’t be a problem importing a module at finalization. I am

[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.

[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 -- assignee:

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

2014-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- 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

[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 rep...@bugs.python.org http://bugs.python.org/issue22598 ___

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue21052 ___

[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 rep...@bugs.python.org

[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

[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_number__

[issue22598] IMAP4 UTF-7 support

2014-10-10 Thread Raúl Cumplido
Changes by Raúl Cumplido raulcumpl...@gmail.com: -- nosy: +raulcd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22598 ___ ___ Python-bugs-list

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ncoghlan stage: - commit review type: crash - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22603 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22587 ___

[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

[issue1703178] link_objects in setup.cfg crashes build

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1703178 ___ ___ Python-bugs-list

[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

[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) (is

[issue22604] assertion error in complex division

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22604 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org http://bugs.python.org/issue22599 ___ ___ Python-bugs-list

[issue22598] IMAP4 UTF-7 support

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +Unicode nosy: +ezio.melotti, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22598 ___

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

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: IMAP4 UTF-7 support - Add mUTF-7 codec (UTF-7 modified for IMAP) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22598 ___

[issue22604] assertion error in complex division

2014-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22604 ___ ___

[issue22557] Locale import is too slow

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: Local import is too slow - Locale import is too slow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22557 ___

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue22557

[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.

[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 rep...@bugs.python.org http://bugs.python.org/issue22604 ___

[issue19884] Importing readline produces erroneous output

2014-10-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884 ___ ___ Python-bugs-list mailing list

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22604

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue11694 ___

[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

[issue22588] memory corrupted in test_capi refleaks test

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

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

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- components: Library (Lib) nosy: jwilk priority: normal severity: normal status: open title: memcpy(NULL, NULL, 0) in versions: Python 3.5 ___ Python tracker rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue22605

[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 even

[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. --

[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

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: docs@python - terry.reedy nosy: +terry.reedy type: enhancement - behavior versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22603

[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 rep...@bugs.python.org

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22588 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue22603

  1   2   >