[issue27281] unpickling an xmlrpc.client.Fault raises TypeError

2016-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks reasonable. But since Fault never was unpickleable, this issue is in gray zone between bug fixing and adding new feature. The latter can be done only in new Python version. I hesitate with classification of this issue. There are a lot of other ex

[issue27265] Hash of different, specific Decimals created from str is the same

2016-06-09 Thread Radosław Szalski
Radosław Szalski added the comment: Thanks for the comments, you are both correct. I think that the issue is resolved now, so I'm closing this a won't fix. -- status: open -> closed ___ Python tracker

[issue27265] Hash of different, specific Decimals created from str is the same

2016-06-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 93ad47d63b87 by Yury Selivanov in branch '3.5': Issue #27243: Fix __aiter__ protocol https://hg.python.org/cpython/rev/93ad47d63b87 New changeset 9ff95c30a38e by Yury Selivanov in branch 'default': Merge 3.5 (issue #27243) https://hg.python.org/cpyt

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks a lot, Nick! I've merged the patch. -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue27281] unpickling an xmlrpc.client.Fault raises TypeError

2016-06-09 Thread Uri Okrent
Uri Okrent added the comment: My reading of the docs leads me to lean towards bug since this seems to break the contract of BaseException API in a standard lib module: https://docs.python.org/3/library/exceptions.html#BaseException says BaseExceptions have args and with_traceback so those prob

[issue27128] Add _PyObject_FastCall()

2016-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue27213. Maybe fast call with keyword arguments would avoid the creation of a dict. -- ___ Python tracker ___

[issue15657] Error in Python 3 docs for PyMethodDef

2016-06-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue27281] unpickling an xmlrpc.client.Fault raises TypeError

2016-06-09 Thread Uri Okrent
Uri Okrent added the comment: I updated the patch to improve the tests and made the same change to xmlrpc.client.ProtocolError (which was the only other place in xmlrpc.client). I'll let you decide if this patch is better despite the fact that it suffers from the same data duplication as Faul

[issue27128] Add _PyObject_FastCall()

2016-06-09 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > See issue27213. Maybe fast call with keyword arguments would avoid the > creation of a dict. In a first verison of my implementation, I used dictionary items stored a a list of (key, value) tuples in the same PyObject* C ar

[issue27186] add os.fspath()

2016-06-09 Thread Brett Cannon
Brett Cannon added the comment: Re-opening as there are several patches that got put in here that have not been applied (e.g. glossary entry, os.DirEntry, etc.). -- assignee: -> brett.cannon status: closed -> open ___ Python tracker

[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am leaving this open to look into later adding an automated test for this to the new test_editmenu file that will be added for #5124. -- ___ Python tracker _

[issue27186] add os.fspath()

2016-06-09 Thread Brett Cannon
Brett Cannon added the comment: I'm starting to catch up on everything you all did for PEP 519 and I wanted to say thanks! It looks like everything that needs to be done has been committed, has a patch, or just needs docs. The only thing I needed to do post-commit is tweak the docstrings to be

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: I've also updated PEP 492: https://hg.python.org/peps/rev/fef4b9969b9d Please feel free to post to this issue if you think that I should have covered it differently or in more detail. -- ___ Python tracker

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file43325/x11-paste-27.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file43324/x11-paste-35.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: For 3.6, I added ttk.Entry to x11 fixer. I expanded tests to Entry and Spinboxes. I noted in a comment that tk.Entry/Spinbox, but not ttk.Entry, would not paste with generated <> event without a 0-length selection. This might be a glitch in tk, but pasting

[issue27182] PEP 519 support in the stdlib

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6239673d5e1d by Brett Cannon in branch 'default': Issue #27182: Document os.PathLike. https://hg.python.org/cpython/rev/6239673d5e1d -- ___ Python tracker

[issue27182] PEP 519 support in the stdlib

2016-06-09 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon dependencies: +Add a "What's New" entry for PEP 519 ___ Python tracker ___ ___

[issue27283] Add a "What's New" entry for PEP 519

2016-06-09 Thread Brett Cannon
New submission from Brett Cannon: Issue to track the fact that I need to write the "What's New" entry once all other PEP 519-related work is finished. -- assignee: brett.cannon components: Documentation messages: 268066 nosy: brett.cannon priority: deferred blocker severity: normal stag

[issue23693] timeit accuracy could be better

2016-06-09 Thread STINNER Victor
STINNER Victor added the comment: Hi, I develop a new implementation of timeit which should be more reliable: http://perf.readthedocs.io/en/latest/ * Run 25 processes instead of just 1 * Compute average and standard deviation rather than the minimum * Don't disable the garbage collector * Skip

[issue15476] Index "code object" and link to code object definition

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e9aace7e10a by Tommy Beadle in branch '3.5': [Issue 15476] Make "code object" its own entry in the index https://hg.python.org/cpython/rev/2e9aace7e10a New changeset 8455bbc6b4f2 by Martin Panter in branch 'default': Issue #15476: Merge index entri

[issue26556] Update expat to 2.2.1

2016-06-09 Thread Brian Martin
Brian Martin added the comment: Per http://expat.sourceforge.net/, version 2.1.1 fixes CVE-2015-1283, not 2.2.1 as mentioned in a comment. -- nosy: +Brian Martin ___ Python tracker

[issue27186] add os.fspath()

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset cec1f00c538d by Brett Cannon in branch 'default': Issue #27186: Document PyOS_FSPath(). https://hg.python.org/cpython/rev/cec1f00c538d -- ___ Python tracker __

[issue15476] Index "code object" and link to code object definition

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Thanks for the patch Tommy. I think we can close this now. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker __

[issue8491] Need readline command and keybinding information

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset e981a4273cf6 by Martin Panter in branch '2.7': Issue #8491: Add link to Gnu Readline configuration documentation https://hg.python.org/cpython/rev/e981a4273cf6 New changeset 5bbb021450d7 by Martin Panter in branch '3.5': Issue #8491: Add link to Gnu

[issue24759] Idle: require tk 8.5 and ttk widgets, and drop unneeded code.

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 81927f86fa3a by Terry Jan Reedy in branch 'default': Issue #24759: Add test for IDLE syntax colorizoer. https://hg.python.org/cpython/rev/81927f86fa3a -- ___ Python tracker

[issue24759] Idle: require tk 8.5 and ttk widgets, and drop unneeded code.

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76f831e4b806 by Terry Jan Reedy in branch 'default': Issue #24759: IDLE requires tk 8.5 and availability ttk widgets. https://hg.python.org/cpython/rev/76f831e4b806 -- ___ Python tracker

[issue24750] IDLE: Cosmetic improvements for main window

2016-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Revised plan: use ttk in 3.6 and only 3.6. I will revise scroll patch for new file names, retest, and apply if good. -- assignee: -> terry.reedy stage: needs patch -> commit review versions: -Python 3.5 ___ Python

[issue8491] Need readline command and keybinding information

2016-06-09 Thread Martin Panter
Martin Panter added the comment: For the record, I removed some trailing spaces and reworded the link in the comitted version. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2016-06-09 Thread Martin Panter
Martin Panter added the comment: This was supposed to be fixed in 2.7 by r78979 and beb9d176503e. But those changes were made to the dead _findLib_ldconfig() function (later deleted as part of Issue 13979). I will port the changes to the live _findSoname_ldconfig() function. -- nosy:

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2016-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset b4839797f482 by Matthias Klose in branch '2.7': Issue #7356: ctypes.util: Make parsing of ldconfig output locale independent. https://hg.python.org/cpython/rev/b4839797f482 -- nosy: +python-dev ___ Python

[issue26565] [ctypes] Add value attribute to non basic pointers.

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Eryk Sun’s as_void suggestion sounds similar to doing: ctypes.cast(any_pointer, ctypes.c_void_p) Why do you want the address? Perhaps it is good enough to get it from a void pointer: ctypes.cast(any_pointer, ctypes.c_void_p).value Maybe “pointer_value” would

[issue20508] IndexError from ipaddress._BaseNetwork.__getitem__ has no message

2016-06-09 Thread Berker Peksag
Berker Peksag added the comment: +1 for "address index out of range". The current test only covers the first IndexError. We also need to add another one for the else branch. -- nosy: +berker.peksag versions: +Python 3.6 ___ Python tracker

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Updated Python 2 patch merged with recent changes. I will commit at least the Python 3 version soon, because the existing code sets a bad example for potential additions (Issue 26439). -- Added file: http://bugs.python.org/file43326/ctypes_util_popen-4.

[issue27239] Make idlelib.macosx self-contained.

2016-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue24750] IDLE: Cosmetic improvements for main window

2016-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file43327/ttk-scrollbar.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I deliberately omitted ttk.Entry, because it doesn't have special behavior on X11. -- ___ Python tracker ___ _

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Will try to change the existing code from os.popen to subprocess (Issue 26439) to set a better example for new code like this -- dependencies: +avoid using a shell in ctypes.util: replace os.popen with subprocess ___

[issue24617] os.makedirs()'s [mode] not correct

2016-06-09 Thread Martin Panter
Martin Panter added the comment: This version of the patch looks good to me -- stage: patch review -> commit review ___ Python tracker ___ ___

[issue20508] IndexError from ipaddress._BaseNetwork.__getitem__ has no message

2016-06-09 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that the command used in _findLib_gcc always fails. $ LANG=C LC_ALL=C gcc -Wl,-t -o ttt -lc /usr/bin/ld: mode elf_i386 /usr/lib/gcc/i686-linux-gnu/5/../../../i386-linux-gnu/crt1.o /usr/lib/gcc/i686-linux-gnu/5/../../../i386-linux-gnu/crti.o /usr

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume then that the tests pass on Linux with TEntry removed. I take this as repudiation of the 'X11' behavior by the tk maintainers, and as support for changing the old widgets. Having different paste behavior in text and entry widgets, or even different

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Yes it is okay. The code is compiling a dummy file without main(), just to see what libraries GCC tries to link with it. It is only interested in extracting the line matching *libc.so.*, which in your case should be /lib/i386-linux-gnu/libc.so.6 So you should

[issue26868] Document PyModule_AddObject's behavior on error

2016-06-09 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review Serhiy. Here is an updated patch. -- Added file: http://bugs.python.org/file43328/issue26868_v2.diff ___ Python tracker ___

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Test suite emits a new warning, and fails under python -Werror: == ERROR: test_readline (test.test_asyncio.test_pep492.StreamReaderTests) -

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Kaushik or David (or anyone else), does you have an idea of how to fix the Windows tests? It would be good to make the buildbots healthy again, then it is easier to see new failures in Windows. -- priority: normal -> high __

[issue15657] Error in Python 3 docs for PyMethodDef

2016-06-09 Thread Berker Peksag
Berker Peksag added the comment: I'm going to delete (but note that :const:`METH_KEYWORDS` alone is equivalent to ``METH_VARARGS | METH_KEYWORDS``) from Doc/c-api/structures.rst in 3.5. Then change the value of METH_KEYWORDS from 0x0002 to 0x0003 in 3.6. Thanks for the review Serhiy. --

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-09 Thread STINNER Victor
STINNER Victor added the comment: Maybe the failure should be explained in a comment? (Sorry I din't read the patch.) -- ___ Python tracker ___ __

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2016-06-09 Thread Martin Panter
Martin Panter added the comment: I’ve never considered this sort of scenario properly, so I don’t know if leaving the default mode for the parent directories is the best way or not. The obvious but more complicated alternative would be to call chmod() on all the new directories in a second ste

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-09 Thread Martin Panter
Martin Panter added the comment: Yes a comment sounds like a good idea. Here is a new Py 3 patch. -- Added file: http://bugs.python.org/file43329/ctypes_util_popen-5.py3.patch ___ Python tracker ___

[issue18802] ipaddress documentation errors

2016-06-09 Thread Berker Peksag
Berker Peksag added the comment: > * The IPv[46]Network.hostmask property is wrongly called "host mask" > (with a space!) in the docs This one has already been fixed in 4f8ad9a4193f. -- nosy: +berker.peksag versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4 ___

[issue27140] Opcode for creating dict with constant keys

2016-06-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Does this change break this function? def subtle(): one = {-0. : 'a', -1: 'b'} two = {0. : 'a', -1: 'b'} assert all(math.copysign(1, x) < 0 for x in one) assert any(math.copysign(1, x) > 0 for x in two) Perhaps you should restrict yourself to s

[issue27277] Fatal Python error: Segmentation fault in test_exceptions

2016-06-09 Thread Rohit Mediratta
Rohit Mediratta added the comment: Debugged with gdb and found the following (gdb) run ../coveragepy/ run --pylib Lib/test/regrtest.py test_exceptions Starting program: /local/romedira/pydev/cpython/python ../coveragepy/ run --pylib Lib/test/regrtest.py test_exceptions [Thread debugging usi

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ctypes_util_popen-5.py3.patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

<    1   2