[issue26377] Tkinter dialogs will not close if root window not packed.

2016-02-22 Thread Sam Yeager
Sam Yeager added the comment: Updated script with the adding 'parent-Rootwin' to messagebox() arguments. The issue persists. Following advice in #26376: Ran script on Terminal. The issue disappears, and everything works normally. Running through IDLE, the issue returns. --

[issue26376] Tkinter root window won't close if packed.

2016-02-22 Thread Sam Yeager
Sam Yeager added the comment: Ran script on Terminal. The issue disappears, and everything works normally. Running through IDLE, the issue returns. Sorry, Terry. -- ___ Python tracker

[issue26403] Catch FileNotFoundError in socketserver.DatagramRequestHandler

2016-02-22 Thread desbma
Changes by desbma : -- title: Don't call sendto in socketserver.DatagramRequestHandler if there is nothing to send -> Catch FileNotFoundError in socketserver.DatagramRequestHandler ___ Python tracker

[issue26403] Don't call sendto in socketserver.DatagramRequestHandler if there is nothing to send

2016-02-22 Thread desbma
desbma added the comment: OK, so first part of this issue (sendto called even if no data has been written) is indeed a duplicate of https://bugs.python.org/issue1767511 sorry for that. For the second part of the issue (the exception not silenced), I have attached a new patch. --

[issue1767511] SocketServer.DatagramRequestHandler with empty response

2016-02-22 Thread desbma
Changes by desbma : -- nosy: +desbma ___ Python tracker ___ ___ Python-bugs-list

[issue26261] NamedTemporaryFile documentation is vague about the `name` attribute

2016-02-22 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26268] Update python.org installers to use OpenSSL 1.0.2f

2016-02-22 Thread Zachary Ware
Zachary Ware added the comment: OpenSSL seems to have FUBARed their release process, such that the include/ directory no longer includes anything. As such I had to update prepare_ssl.py to handle creating include directories for 32 and 64 bit. This is somewhat wasteful since the only thing

[issue26392] socketserver.BaseServer.close_server should stop serve_forever

2016-02-22 Thread Martin Panter
Martin Panter added the comment: I suggest to reject this. Checking a flag before using a shared file descriptor is a recipe for a race condition, and in this case, unspecified behaviour: (applies to select and poll). --

[issue26268] Update python.org installers to use OpenSSL 1.0.2f

2016-02-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3be29e684ccf by Zachary Ware in branch '2.7': Issue #26268: Update Windows builds to use OpenSSL 1.0.2f https://hg.python.org/cpython/rev/3be29e684ccf New changeset e1187d3204e9 by Zachary Ware in branch '3.5': Issue #26268: Update the

[issue26404] socketserver context manager

2016-02-22 Thread Martin Panter
Martin Panter added the comment: I would support this change, as long as we aren’t supporting using server_close() to stop the server loop at the same time. It might be worth updating other example code that uses server_close(), in particular in the xmlrpc.server documentation. --

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-02-22 Thread Antti Haapala
Antti Haapala added the comment: I believe `urlparse` should throw a `TypeError` if not isinstance(url, (str, bytes)) -- ___ Python tracker ___

[issue26408] pep-8 requires few corrections

2016-02-22 Thread thefourtheye
New submission from thefourtheye: 1. It doesn't have the Reference 4 used anywhere in the doc. 2. The `if` condition is not properly ended in the Programming Recommendation section. 3. Apart from that few grammatical changes are necessary I believe. -- assignee: docs@python

[issue26409] Support latest Tcl/Tk on future versions of Mac installer

2016-02-22 Thread Aivar Annamaa
New submission from Aivar Annamaa: Currently Mac installer can create only Tk 8.5 compatible Tkinter, even if Tcl/Tk 8.6 is installed. Unofficial distributions doesn't seem to have problems with Tk 8.6 on Mac. I think official installer should be upgraded as well. Best option for users would

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: I've just posted the results to an OpenStack Swift benchmark run using the patch from my proposition, issue #26382. Victor's patch, applied to CPython 2.7, adds an extra 1% compared to mine (which improved throughput by 1%), effectively doubling the

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Hi all, Please find below the results from a complete GUPB run on a patched CPython 3.6. In average, an improvement of about 2.1% can be observed. I'm also attaching an implementation of the patch for CPython 2.7 and its benchmark results. On GUPB

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-22 Thread STINNER Victor
STINNER Victor added the comment: > Compared to my proposition in issue #26382, this patch yields slightly better > results for CPython 3.6, gaining an average of +0.36% on GUPB, and similar results for CPython 2.7. IMHO this change is too young to be backported to Python 2.7. I wrote it for

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: docs@python -> barry ___ Python tracker ___ ___

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks! I like some of the changes, and may tweak a few others. Thanks for the contribution. -- ___ Python tracker

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-22 Thread Tamás Bence Gedai
Tamás Bence Gedai added the comment: Updated the patch to remove the code duplication, now it stores the values that are calculated in the setUpClass method. It was a good and simple idea, I should have come up with it... :) I'm pretty sure I got the errors during configuration because of the

[issue26407] csv.writer.writerows masks exceptions from __iter__

2016-02-22 Thread Ilja Everilä
New submission from Ilja Everilä: When passing a class implementing the dunder __iter__ that raises to csv.writer.writerows it hides the original exception and raises a TypeError instead. In the raised TypeError the __context__ and __cause__ both are None. For example: >>> class X: ... def

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread thefourtheye
Changes by thefourtheye : -- title: pep-8 requires few corrections -> pep-8 requires a few corrections ___ Python tracker

[issue26382] List object memory allocator

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Our Haswell-EP OpenStack Swift setup shows a 1% improvement in throughput rate using CPython 2.7 (5715a6d9ff12) with this patch. -- ___ Python tracker

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Georg Brandl
Georg Brandl added the comment: I can't really comment on the grammar changes, but the rest looks good to me. This is not very smooth, in both versions: -Consistency within one module or function is most important. +Consistency within one module or function is the most important thing. -But

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 43d612fc6b12 by Barry Warsaw in branch 'default': Gramatical and other improvements given by thefourtheye. https://hg.python.org/peps/rev/43d612fc6b12 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Georg Brandl
Georg Brandl added the comment: -Consistency within one module or function is most important. +Consistency within one module or function is the most important. You left out "thing" from the patch; is that intended? -- ___ Python tracker

[issue26366] Use “.. versionadded” over “.. versionchanged” where appropriate

2016-02-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: If no one is planning to propose specific new markup for more fine-grained version annotations, this issue can be closed. -- ___ Python tracker

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-22 Thread A. Skrobov
New submission from A. Skrobov: I have a one-line module that assigns a tuple->int dictionary: holo_table = {(0, 0, 0, 0, 0, 0, 1, 41, 61, 66, 89): 9, (0, 0, 0, 70, 88, 98, 103, 131, 147, 119, 93): 4, [35MB skipped], (932, 643, 499, 286, 326, 338, 279, 200, 280, 262, 115): 5} When I try to

[issue26414] os.defpath too permissive

2016-02-22 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue26396] Create json.JSONType

2016-02-22 Thread Anish Shah
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker ___ ___

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-02-22 Thread Anish Shah
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker ___ ___

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-22 Thread Anish Shah
Anish Shah added the comment: Hi Brett, I'm looking for some issues to solve. Is this issue confirmed? Can I work on this? -- ___ Python tracker ___

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 22, 2016, at 02:20 PM, Georg Brandl wrote: >Georg Brandl added the comment: > >-Consistency within one module or function is most important. >+Consistency within one module or function is the most important. > >You left out "thing" from the patch; is

[issue26412] Segmentation Fault: 11

2016-02-22 Thread Payden Comer
New submission from Payden Comer: A "Segmentation Fault:11" crash occurs on OS X El Captain when using `return pysodium.sodium.crypto_box_beforenm(clientpub, serverprivatekey)`, with args as None, serverprivatekey, rather than a traceback dissallowing a NoneType Argument. Crash Log attached.

[issue26410] "incompatible pointer type" while compiling Python3.5.1

2016-02-22 Thread Devyn Johnson
New submission from Devyn Johnson: When compiling Python3.5.1 on Ubuntu 15.10 (64-bit), I see three "incompatible pointer type" warnings (copy-pasted below). I understand that they can be ignored. However, from my experience with programming (in C STD-2011), "weird bugs" and other odd

[issue26411] Suggestion concerning compile-time warnings

2016-02-22 Thread Devyn Johnson
New submission from Devyn Johnson: I understand that compile-time warnings can typically be ignored. However, from my experience with programming (C STD-2011, for instance), "weird bugs", non-easily-replicable bugs, and odd behaviors disappear when warnings like this are fixed. I also

[issue25080] The example-code for making XML-RPC requests through proxy, fail!

2016-02-22 Thread Berker Peksag
Berker Peksag added the comment: This has been fixed in cf842a8ccb77. Thank you for reporting this, Kostis! -- nosy: +berker.peksag resolution: -> out of date stage: needs patch -> resolved status: open -> closed versions: -Python 3.4 ___ Python

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-22 Thread Simon Bernier St-Pierre
Changes by Simon Bernier St-Pierre : -- status: open -> closed ___ Python tracker ___

[issue26410] "incompatible pointer type" while compiling Python3.5.1

2016-02-22 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of the issue #26161, waybe we can backport the changeset ff68ffcc6244 to the Python 3.5 branch. -- nosy: +haypo ___ Python tracker

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-22 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-02-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Jakub. I don't use mmap module much so I don't have an opinion about the feature, but it sounds reasonable. I left some review comments on Rietveld: http://bugs.python.org/review/26335/ -- components: +Extension Modules -IO,

[issue26413] python 3.5.1 uses wrong registry in system-wide installation

2016-02-22 Thread Mike
New submission from Mike: The installer for python 3.5.1 (observed with the x64-86 executable installer, assumed to happen with all installers) allows users to install python either just for themselves or do a system-wide installation (provided they have sufficient privileges). However, when

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-22 Thread Mike Kaplinskiy
Mike Kaplinskiy added the comment: Looks like by signed CLA just made it through, so that should be settled. For the other bugs, it seems that overloading run_module & run_path seems to be getting a bit cumbersome, so it might make sense to have some sort of Runner object that has things like

[issue26413] python 3.5.1 uses wrong registry in system-wide installation

2016-02-22 Thread Eryk Sun
Changes by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Windows AllUsers installation places uninstaller in user profile ___ Python tracker

[issue26414] os.defpath too permissive

2016-02-22 Thread John Beck
New submission from John Beck: A bug has been filed against Solaris' internal version of Python, which is largely the same (including in this case) as the base version we get from python.org. The bug is that os.defpath starts with ':' and thus any Python script run with a null PATH environment

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-22 Thread Brett Cannon
New submission from Brett Cannon: In the thread at https://mail.python.org/pipermail/speed/2016-February/000272.html it came up that the regex_v8, telco, and spectral_norm benchmarks are all very inconsistent. That means they should be deprecated. -- components: Benchmarks messages:

[issue26366] Use “.. versionadded” over “.. versionchanged” where appropriate

2016-02-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: For anyone following along only via the tracker, it's worth noting that proposals for new markup are welcome on the docs mailing list. More information is available at: https://mail.python.org/mailman/listinfo/docs --

[issue26417] Default IDLE 2.7.11 configuration files are out-of-sync on OS X framework installs

2016-02-22 Thread Ned Deily
New submission from Ned Deily: On OS X framework installs, the Mac-specific sub-makefiles do some important tailoring of IDLE/s config-extensions.def and config-main.def files, among other things changing Tk some Tk events for more appropriate keyboard bindings (e.g. "

[issue26366] Use “.. versionadded” over “.. versionchanged” where appropriate

2016-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fred, thanks for chiming in. Let's do close this one. -- nosy: +rhettinger resolution: -> not a bug status: open -> closed ___ Python tracker

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-02-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> michael.foord ___ Python tracker ___

[issue26404] socketserver context manager

2016-02-22 Thread Aviv Palivoda
Aviv Palivoda added the comment: Only closing the server :). 1. Did the changes requested in the CR. 2. Changed the example's in xmlrpc.server, http.server to use context manager. 3. Changed the xmlrpc.server, http.server server implementation when running python -m {xmlrpc.server, http.server}

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-22 Thread Brett Cannon
Brett Cannon added the comment: Sorry, this has not been decided upon yet. Since it's a change in semantics either I just need to make a decision or convince someone else to provide an opinion as to whether this change makes sense. -- ___ Python

[issue26411] Suggestion concerning compile-time warnings

2016-02-22 Thread SilentGhost
Changes by SilentGhost : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, yselivanov ___ Python tracker ___

[issue26411] Suggestion concerning compile-time warnings

2016-02-22 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue26412] Segmentation Fault: 11

2016-02-22 Thread Christian Heimes
Christian Heimes added the comment: pysodium is not part of Python's standard library. Please report 3rd party bugs in the project's bug tracker. -- nosy: +christian.heimes resolution: -> third party stage: -> resolved status: open -> closed ___

[issue26405] tkinter askopenfilename doubleclick issue on windows

2016-02-22 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +gpolo, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue15216] Support setting the encoding on a text stream after creation

2016-02-22 Thread Andrei Dorian Duma
Changes by Andrei Dorian Duma : -- nosy: -andrei.duma ___ Python tracker ___

[issue25136] Python doesn't find Xcode 7 stub libraries

2016-02-22 Thread Brett Cannon
Brett Cannon added the comment: We should update the devguide to specify that the command-line tools need to be installed and either explain or point to documentation on how to install the tools. -- nosy: +brett.cannon ___ Python tracker

[issue25910] Fixing links in documentation

2016-02-22 Thread SilentGhost
Changes by SilentGhost : -- status: open -> languishing ___ Python tracker ___ ___

[issue25801] ResourceWarning in test_zipfile64

2016-02-22 Thread SilentGhost
Changes by SilentGhost : -- status: open -> languishing ___ Python tracker ___ ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-02-22 Thread Andrei Dorian Duma
Changes by Andrei Dorian Duma : -- nosy: -andrei.duma ___ Python tracker ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-02-22 Thread Alessandro Cucci
Alessandro Cucci added the comment: New patch after @martin.panter comments on Rietveld. I left only this: - ``'milliseconds'``: Append the hours, minutes, seconds and milliseconds. > vadmium 2016/02/21 23:30:20 > I think this should explain that fractions are truncated to zero, never >

[issue26414] os.defpath too permissive

2016-02-22 Thread Danek Duvall
Changes by Danek Duvall : -- nosy: +dhduvall ___ Python tracker ___ ___

[issue26402] Regression in Python 3.5 xmlrpc.client, raises RemoteDisconnected seemingly randomly.

2016-02-22 Thread Martin Panter
Martin Panter added the comment: Here is patch with a test case. I kept Jelte’s original fix as it is, because I want to be conservative in the code changes. Xmlrpc.server only uses HTTP 1.0, without any support of keep-alive connections, so I used http.server instead. -- stage: test

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2016-02-22 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___

[issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

2016-02-22 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue26403] Don't call sendto in socketserver.DatagramRequestHandler if there is nothing to send

2016-02-22 Thread Martin Panter
Martin Panter added the comment: Actually there is precedent for some asynchronous errors due to the client to be ignored: * Revision 87d3f91e44d4: Catch socket.error (now OSError) from accept() * r73819: Catch socket.error (OSError) to handle ENOTCONN from shutdown() * Revision 7e5d7ef4634d:

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-22 Thread Nick Coghlan
Nick Coghlan added the comment: The PSF also has a Contributor Licensing Agreement in place for contributions to CPython, so if you could sign that, that would be great: https://www.python.org/psf/contrib/contrib-form/ Highlights from a contributor point of view: - the CLA explicitly licenses

[issue26261] NamedTemporaryFile documentation is vague about the `name` attribute

2016-02-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset f1982e1426ce by Martin Panter in branch '3.5': Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name https://hg.python.org/cpython/rev/f1982e1426ce New changeset 837bae8c8ae7 by Martin Panter in branch 'default': Issue #26261: Merge

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-22 Thread Nick Coghlan
Nick Coghlan added the comment: This seems like a reasonable enhancement to me, but I'd appreciate your thoughts on how it might relate to a couple of other proposed ideas: * Supporting execution-by-module-name in pdb et al: https://bugs.python.org/issue9325 * Supporting configurable target

[issue26390] hashlib's pbkdf2_hmac documentation "rounds" does not match source

2016-02-22 Thread Martin Panter
Martin Panter added the comment: Here is an updated patch. I also fixed the hash_name parameter, some more minor offences in the documentation, and added a test case. -- Added file: http://bugs.python.org/file42002/pbkdf2_6.patch ___ Python tracker