[issue27019] Reduce marshal stack depth for 2.7 on Windows debug build

2016-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6230ead06f65 by Benjamin Peterson in branch '2.7': reduce marshal stack size in debug mode on windows (closes #27019) https://hg.python.org/cpython/rev/6230ead06f65 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open

[issue27248] Possible refleaks in PyType_Ready in error condition

2016-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f1fcf60863f8 by Benjamin Peterson in branch '3.5': fix refleaks in PyDict_SetItem error cases (closes #27248) https://hg.python.org/cpython/rev/f1fcf60863f8 New changeset 370b2985d462 by Benjamin Peterson in branch '2.7': fix refleaks in PyDict_SetI

[issue27220] Add a pure Python version of 'collections.defaultdict'

2016-07-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Next patch should finish issue except for a couple of minor questions. -- stage: test needed -> commit review Added file: http://bugs.python.org/file43651/query-helpsource.diff ___ Python tracker

[issue23591] Add IntFlags

2016-07-06 Thread Ethan Furman
Ethan Furman added the comment: Reviewing... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-07-06 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue27137] Python implementation of `functools.partial` is not a class

2016-07-06 Thread Nick Coghlan
Nick Coghlan added the comment: I should be able to take a look at the updated patch this coming weekend. -- stage: patch review -> commit review ___ Python tracker ___ _

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-07-06 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, skipping the caching entirely would be an even simpler solution - the only thing it is saving in the typical case is a dictionary lookup in the modules cache. -- ___ Python tracker

[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: ah, okay, that makes much more sense and is indeed a bug. Recommendation given that most people won't be using a python 2.7 version that has this and tons of other subprocess from a threaded process bugs fixed: Use subprocess32 where this isn't a problem. -

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: Is there any particular reason that datetime.strptime caches the imported module like that? >From a quick search, these two other examples don't bother with any caching: https://github.com/python/cpython/blob/2d264235f6e066611b412f7c2e1603866e0f7f1b/Modules/tim

[issue19489] move quick search box above TOC

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: It looks like this can be fixed by us. Since sphinx 1.0 there is this handy config parameter: http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars I've attached a patch which pins the searchbox as the first thing on every page. -- keywor

[issue23710] C API doc for PyObject_HEAD is outdated

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: This diff amends the documentation to point out that PyObject_HEAD includes the ob_base field, gives a brief overview of it and points to the PyObject/structures page for more information. It also changes the semicolon part to a warning for clarity. -- k

[issue27242] Make the docs for NotImplemented & NotImplementedError unambiguous

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: New patch with proper indenting, should be good as far as formatting is concerned :) -- Added file: http://bugs.python.org/file43648/NotImplemented_exceptions_wording_5.patch ___ Python tracker

[issue26267] UUID docs should say how to get "standard form"

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: This patch adds documentation for the str(uuid) operator along with documenting the fact that UUID instances support comparisons with `>` and `<`. It also indents the attributes and descriptions to emphasize that they are part of the UUID instance, not the uuid m

[issue26823] Shrink recursive tracebacks

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: Sorry for the delay, but here's a patch with updated tests after Nick's suggestions. It should be ready to merge now. (I'm having some failures in test_traceback, but they fail even without my patch) -- Added file: http://bugs.python.org/file43646/shor

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Oops the proglem of clang on ARM is not completely fixed in libffi 3.2.1. This commit [1] fixes only one `stmeqia` but not another. [1] https://github.com/libffi/libffi/commit/6eff9ff9e72463b9783be2514f944b6f05692054#diff-c6400d42bf23866ded49558ca9a54205R220 -

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Zachary Ware
Changes by Zachary Ware : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: +1 for this. Cross-compile CPython for ARM with clang fails in _ctypes due to https://llvm.org/bugs/show_bug.cgi?id=20595. This bug is already fixed in libffi. By the way, I can't apply libffi.patch to the default branch. Some hunks are rejcted. Is there somet

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
John Hagen added the comment: @Berker, thanks for the tip! I've fixed it up. I think this latest patch covers everything Berker and Terry have commented about. -- Added file: http://bugs.python.org/file43645/Fix-tkinter-docs-PEP8.diff ___ Python tra

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
Changes by John Hagen : Removed file: http://bugs.python.org/file43641/0001-Fix-tkinter-docs-PEP8.diff ___ Python tracker ___ ___ Python-bugs-

[issue27220] Add a pure Python version of 'collections.defaultdict'

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: Raymond, do you have any interest/time to review this? I can ask someone else, if you prefer. -- ___ Python tracker ___

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Pyt

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: > We really don't want to encourage any reliance on this optimization. It was > put there only to help mitigate the performance impact of a common mistake. Aah, I didn't realize the extra context behind why the unicode_concatenate path actually exists in ceval.

[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: +@unittest.skipIf(sysconfig.get_config_var('ANDROID_API_LEVEL') == 0, + "not an android platform") Hum, sysconfig.get_config_var() returns None for unknown variable. Why checking ==0? @Xavier: Are you generating the patch using "hg

[issue27051] Create PIP gui

2016-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Window stacking order can be queried with tcl calls: https://stackoverflow.com/questions/10343759/determining-what-tkinter-window-is-currently-on-top/10391659#10391659. I do not if there is the equivalent for frames. Note that uses can change window stack or

[issue27434] cross-building python 3.6 with an older interpreter fails

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: restrict_interp_2.patch: LGTM. not ... == '...' can be written ... != '...', no? -- nosy: +haypo ___ Python tracker ___ ___

[issue25077] Compiler warnings: initialization from incompatible pointer type

2016-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27137] Python implementation of `functools.partial` is not a class

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: Is there anything still preventing this from being merged? I think the ability to consistently get the same behaviour, with or without _functools available, outweighs the performance and simplicity loss (and as far as performance loss goes, it appears that _fun

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: I agree with Raymond. Use ''.join(list of str) or a similar pattern. -- ___ Python tracker ___ ___ P

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Berker Peksag
Berker Peksag added the comment: > which Berker says have been fixed in upstream libffi: > https://bugs.python.org/issue25077#msg266068 Correct, here is the actual commit: https://github.com/libffi/libffi/commit/4a677a425c18eda4bc5357b2485da57f133f908d I have also sent a patch to upstream lib

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9481e5f1792 by Serhiy Storchaka in branch 'default': Issue #27460: Unified error messages in bytes constructor for integers https://hg.python.org/cpython/rev/f9481e5f1792 -- nosy: +python-dev ___ Python

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Xiang Zhang. -- components: +Interpreter Core resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is enough. -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Are there any issue *we* have with libffi which an update to 3.2.1 would > solve ? There are these Ubuntu-specific compiler warnings: https://bugs.python.org/issue25077 which Berker says have been fixed in upstream libffi: https://bugs.python.org/issue25077

[issue26974] Crash in Decimal.from_float

2016-07-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: My preference is to leave the Python implementation of from_float() as-is. Pure Python code is not obligated to defend itself against bizarre code. The C code however is obliged to not segfault. -- ___ Python t

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: The constructor has been well tested in https://hg.python.org/cpython/file/tip/Lib/test/test_bytes.py#l111. It looks like that the original author only wants to guarantee the exception type but not message. So I didn't add a assertRaisesRegex test. -- _

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: We really don't want to encourage any reliance on this optimization. It was put there only to help mitigate the performance impact of a common mistake. I don't think subclasses warrant extended coverage. This was already a hack at the outer limits of how

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Are there any tests for these cases? -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file43637/bytes_exception_msg.patch ___ Python tracker ___ ___ Python-bugs-list

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file43643/bytes_exception_msg.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not interested, sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue26746] struct.pack(): trailing padding bytes on x64

2016-07-06 Thread Allan Haldane
Allan Haldane added the comment: Hello, Over at numpy I have a proposed fix for the bug you discovered, that numpy drops trailing padding in the 3118 format string. My strategy is going to make numpy interpret format strings exactly the same way as the struct module, let me know if you disagr

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-07-06 Thread Jim Fulton
Changes by Jim Fulton : -- type: behavior -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2016-07-06 Thread Roman Bolshakov
Changes by Roman Bolshakov : Removed file: http://bugs.python.org/file43046/leak.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2016-07-06 Thread Roman Bolshakov
Roman Bolshakov added the comment: multiprocessing.Queue._writer is affected by similar issue. _writer FD is left open after .close() is invoked on a Queue. -- Added file: http://bugs.python.org/file43642/leak.py ___ Python tracker

[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-06 Thread Andrew
Andrew added the comment: Gregory P. Smith, "if you are seeing a memory leak and the statements that fail before the gc.enable call are more than" The problem in my case was different. It was race condition between gc.isenabled and gc.disable. Isenabled was called when gc was disabled by a

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the updated patch. I noticed a typo in your test script. It works for me if I update the super() line from super().__init__(self, master) to super().__init__(master) -- ___ Python tracker

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2016-07-06 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
John Hagen added the comment: @Terry I've removed the two string quotes changes in the latest patch. @Berker I spent a small amount of time trying out your proposed super() changes, but could not get them to work on 3.5.1. "C:\Users\John Hagen\AppData\Local\Programs\Python\Python35\python.exe"

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
Changes by John Hagen : Removed file: http://bugs.python.org/file43628/0001-Fix-tkinter-docs-PEP8.diff ___ Python tracker ___ ___ Python-bugs-

[issue26826] Expose new copy_file_range() syscall in os module.

2016-07-06 Thread Marcos Dione
Marcos Dione added the comment: Another version: * Changed availability to kernel type, version and date. -- Added file: http://bugs.python.org/file43640/copy_file_range.diff ___ Python tracker ___

[issue26826] Expose new copy_file_range() syscall in os module.

2016-07-06 Thread Marcos Dione
Marcos Dione added the comment: New version: * Adds a new test for offset parameters. -- Added file: http://bugs.python.org/file43639/copy_file_range.diff ___ Python tracker ___

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- type: -> enhancement versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue27434] cross-building python 3.6 with an older interpreter fails

2016-07-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch that gets rid of the changes in configure made by my version of autoconf. This version is 2.69 though, i.e. the same as the generated configure file that is under control of mercurial in the default branch. -- assignee: -> xdegaye stage: pat

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
New submission from Xiang Zhang: I suggest change `bytes` exception message when an iterable containing overflow integers. Right now, bytes([sys.maxsize+1]) emits ValueError: cannot fit 'int' into an index-sized integer "ValueError: cannot fit 'int' into an index-sized integer". I think actua

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-06 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- title: Fix cross-compilation with Android NDK and Clang -> $CPP invocation in configure must use $CPPFLAGS versions: +Python 3.5 ___ Python tracker __

[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch incorporating the substitutions to '$CPP $CPPFLAGS' and ANDROID_API_LEVEL. -- stage: patch review -> commit review Added file: http://bugs.python.org/file43636/android_api_3.patch ___ Python tracker

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue27248] Possible refleaks in PyType_Ready in error condition

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue17711] Persistent id in pickle with protocol version 0

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping again. -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list maili

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2016-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62da75b29b29 by Serhiy Storchaka in branch 'default': Issue #21708: Deprecated dbm.dumb behavior that differs from common dbm https://hg.python.org/cpython/rev/62da75b29b29 -- nosy: +python-dev ___ Python

[issue27051] Create PIP gui

2016-07-06 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, I am switching between different frames using frame.tkraise() method in order to switch the user attention. Now, if I want to test which frame is at top what should I check for or which parameter I should check. -- ___

[issue27441] redundant assignments to ob_size of new ints that _PyLong_New returned

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changes to PyLong_FromUnsignedLong() and PyLong_FromUnsignedLongLong() LGTM. I don't know whether other changes have a positive effect. Are there any microbenchmarks? There are other places in which Py_SIZE() is set to the same value. -- __

[issue27452] IDLE: Cleanup config code

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In this case it works, because os.join('', filename) returns filename. -- ___ Python tracker ___ _

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. It would be interesting to see an example showing the benefit of this change. How large is the benefit, and how common is this case? 2. The optimization of string concatenation is CPython specific, and AFAIK it was decided not to extend it to other cases

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth