[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code generated by Argument Clinic is correct. >>> {}.pop(1) Traceback (most recent call last): File "", line 1, in KeyError: 1 >>> {}.pop(1, None) It is just a signature wrong. Some earlier versions of Argument Clinic allowed you to write

[issue34836] test_ssl.test_default_ecdh_curve needs no tls1.3 flag in 2.7, for now

2019-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 99b5c940d3471e0ed6579771d94e7342d7c733e0 by Nick Coghlan (Dimitri John Ledkov) in branch '2.7': [2.7] bpo-34836: fix test_default_ecdh_curve, needs no tlsv1.3. (GH-9626)

[issue37107] ensurepip --upgrade doesn't change the version of pip used by venv

2019-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: Addressing the other part of Chris's initial post: there's also no `--upgrade-pip` option on `venv` itself. Instead, there's only an `--upgrade` option that is intended for *Python* version upgrades, and restructures the internal layout of the venv to switch

[issue37107] ensurepip --upgrade doesn't change the version of pip used by venv

2019-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: (Added packaging, Linux distro, and Windows and macOS installer folks to the cc list) Chris and I were discussing this behaviour, and it turns out even I had forgotten how we had specified this feature in PEP 453: `ensurepip --upgrade` ensures that an older

[issue37176] super() docs don't say what super() does

2019-06-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sat, Jun 08, 2019 at 09:14:18PM +, Raymond Hettinger wrote: > Ideally, the text can also be made more compact. Having eight > paragraphs sends an implicit message that this is too complex to > understand and that it should be avoided. But it is

[issue37178] One argument form of math.perm()

2019-06-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue11122] bdist_rpm should use rpmbuild, not rpm

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 3f7629d93c8cb3e0ee118c6a6463250f03d6c9f9 by Miss Islington (bot) in branch '3.8': bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594) https://github.com/python/cpython/commit/3f7629d93c8cb3e0ee118c6a6463250f03d6c9f9

[issue37203] Correct classmethod emulation in Descriptor HowTo Guide

2019-06-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm going to close this because 1) I'm working on a somewhat major set of updates this guide already and 2) I think this tracker issue misses the point of what those guide is trying to do (communicating that the class is prepended to the argument stream

[issue37176] super() docs don't say what super() does

2019-06-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes, issue 23674 seems to be at least a partial duplicate. We should just get this fixed and close both issues. Ideally, the text can also be made more compact. Having eight paragraphs sends an implicit message that this is too complex to understand

[issue37203] Correct classmethod emulation in Descriptor HowTo Guide

2019-06-08 Thread Géry
Géry added the comment: @Raymond Hettinger > Though less accurate, the current version communicates better I agree that types.MethodType is more accurate but may be less understandable. But in this case I think that the Function class for emulating instance methods should not use

[issue11122] bdist_rpm should use rpmbuild, not rpm

2019-06-08 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 45a14942c969ed508b35abd5e116cb18f84ce5b4 by Cheryl Sabella (Marcin Niemira) in branch 'master': bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)

[issue11122] bdist_rpm should use rpmbuild, not rpm

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13795 pull_request: https://github.com/python/cpython/pull/13922 ___ Python tracker ___

[issue11122] bdist_rpm should use rpmbuild, not rpm

2019-06-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

2019-06-08 Thread Roland Netzsch
Change by Roland Netzsch : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31652] make install fails: no module _ctypes

2019-06-08 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-08 Thread Raymond Hettinger
New submission from Raymond Hettinger : help(dict.pop) was correct in 3.7: pop(...) D.pop(k[,d]) -> v and incorrect for 3.8: pop(self, key, default=None, /) This happened in: https://github.com/python/cpython/commit/9e4f2f3a6b8ee995c365e86d976937c141d867f8

[issue37091] subprocess - uncaught PermissionError in send_signal can cause hang

2019-06-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: even with that initially proposed patch, the subprocess.run code is going to hang if the .kill() fails without raising an exception: The run() TimeoutExpired path calls communicate() after the kill to consume all remaining output:

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2019-06-08 Thread Tal Einat
Tal Einat added the comment: How about allowing '|' to be used again after '$'? Keyword arguments would be optional by default, but if there is a '|' after the '$', then those before it are required. Examples: "O|O$O|O" -- one required keyword arg and one optional one. "O|O$OO" -- both

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2019-06-08 Thread Ken Healy
Ken Healy added the comment: Note that this offset subtraction behavior appears to be inherited from time.clock(), which did not make any guarantees about returning a system-wide value:

[issue36003] set better defaults for TCPServer options

2019-06-08 Thread Tal Einat
Tal Einat added the comment: I'm not sure that changing the default value for "reuse address" justifies breaking backwards compatibility like this. Admittedly, I'm not an expert on networking, so perhaps there's a good reason that I'm unaware of. As for the queue size, passing 0 to

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2019-06-08 Thread Ken Healy
New submission from Ken Healy : The documentation for time.perf_counter() indicates it should return a system-wide value: https://docs.python.org/3/library/time.html#time.perf_counter This is not true on Windows, as a process-specific offset is subtracted from the underlying

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-06-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13794 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/13921 ___ Python tracker

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-06-08 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +13793 pull_request: https://github.com/python/cpython/pull/13920 ___ Python tracker ___

[issue37189] PyRun_String not exported in python38.dll

2019-06-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: It shouldn't break existing code because PyRun_String has a macro expansion to PyRun_StringFlags. ABI compatibility between major releases is not provded. -- ___ Python tracker

[issue37176] super() docs don't say what super() does

2019-06-08 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Some of the problems brought up here (which sibling or subclass, and which > parameter’s MRO) also came up a few years ago in Issue 23674. Indeed. I would actually say that these two issues are duplicates of each other. --

[issue37178] One argument form of math.perm()

2019-06-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset feaceaafe816e95c4aff15eab0bea6dc2bbfe4fd by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37178: Allow a one argument form of math.perm() (GH-13905) (GH-13919)

[issue37178] One argument form of math.perm()

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13792 pull_request: https://github.com/python/cpython/pull/13919 ___ Python tracker ___

[issue37178] One argument form of math.perm()

2019-06-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e119b3d136bd94d880bce4b382096f6de3f38062 by Raymond Hettinger in branch 'master': bpo-37178: Allow a one argument form of math.perm() (GH-13905) https://github.com/python/cpython/commit/e119b3d136bd94d880bce4b382096f6de3f38062 --

[issue37203] Correct classmethod emulation in Descriptor HowTo Guide

2019-06-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: This wasn't intended to be an exact equivalent. Instead, it focuses on the key action of classmethod which is prepending the class to the call. Though less accurate, the current version communicates better. I suggest adding a short comment to the

[issue37203] Correct classmethod emulation in Descriptor HowTo Guide

2019-06-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37177] IDLE: Search dialogs can be hidden behind the main window

2019-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I saw the email, thanks for testing. Irv, a reminder: All reports of IDLE UI behavior (and some of internal behavior) need to be tagged with OS. Working 'cross-platform' does not mean 'the same across platforms'. In particular, tcl/tk long ago made a

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 51c9cc73cb8768a691688755af0a8b6b12cf712c by Miss Islington (bot) in branch '3.7': bpo-37173: Show passed class in inspect.getfile error (GH-13861) https://github.com/python/cpython/commit/51c9cc73cb8768a691688755af0a8b6b12cf712c --

[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

2019-06-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: I don't follow what reliability guarantee are you requesting. A cite from task.cancel() docstring: > Request that this task cancel itself. This arranges for a CancelledError to be thrown into the wrapped coroutine on the next cycle through

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 10b4fd98142edef6ab7b034e10ae5c9551043999 by Miss Islington (bot) in branch '3.7': bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727) https://github.com/python/cpython/commit/10b4fd98142edef6ab7b034e10ae5c9551043999

[issue37204] Scripts and binaries in PYTHON_PREFIX/Scripts contain unnecessarily lowercased path to Python location on Windows

2019-06-08 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: https://github.com/pypa/pip/issues/6582 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 6324ac1293b2cf71559869b88f89f510f9a62a8e by Miss Islington (bot) in branch '3.8': bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727) https://github.com/python/cpython/commit/6324ac1293b2cf71559869b88f89f510f9a62a8e

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 6692d35317a45905a043dccae3940ea5d5d84352 by Miss Islington (bot) in branch '3.7': bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907) https://github.com/python/cpython/commit/6692d35317a45905a043dccae3940ea5d5d84352

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 22b69da4c38042e923d633530bdafc1b5fb94928 by Miss Islington (bot) in branch '3.8': bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907) https://github.com/python/cpython/commit/22b69da4c38042e923d633530bdafc1b5fb94928

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13791 pull_request: https://github.com/python/cpython/pull/13918 ___ Python tracker ___

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Right, 3.8 not being released yet makes it different. -- ___ Python tracker ___ ___

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13790 pull_request: https://github.com/python/cpython/pull/13917 ___ Python tracker ___

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13789 pull_request: https://github.com/python/cpython/pull/13916 ___ Python tracker ___

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-06-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8cc605acdda5aff250ab4c9b524a7560f90ca9f3 by Gregory P. Smith (Rémi Lapeyre) in branch 'master': bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)

[issue37204] Scripts and binaries in PYTHON_PREFIX/Scripts contain unnecessarily lowercased path to Python location on Windows

2019-06-08 Thread Steve Dower
Steve Dower added the comment: This is due to how the pip.exe launcher is generated, which is part of pip itself (actually distlib, I think, but someone over there can redirect). Please report this at https://github.com/pypa/pip -- resolution: -> third party stage: -> resolved

[issue10880] do_mkvalue and 'boolean'

2019-06-08 Thread Owais Kazi
Owais Kazi added the comment: If it's a easy patch, I would like to pick it up. Can someone please explain how should I proceed with this? I am already done with the setup. TIA -- nosy: +Owais Kazi type: enhancement -> ___ Python tracker

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13788 pull_request: https://github.com/python/cpython/pull/13915 ___ Python tracker ___

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13787 pull_request: https://github.com/python/cpython/pull/13914 ___ Python tracker ___

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset a15a7bcaea54e1845ab2abe27e6f583294cd715b by Gregory P. Smith (Ammar Askar) in branch 'master': bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)

[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

2019-06-08 Thread Roland Netzsch
Roland Netzsch added the comment: So there is no way to reliably find out whether a task has been cancelled by calling Task.cancelled()? -- ___ Python tracker ___

[issue37204] Scripts and binaries in PYTHON_PREFIX/Scripts contain unnecessarily lowercased path to Python location on Windows

2019-06-08 Thread Vlad Shcherbina
New submission from Vlad Shcherbina : To reproduce: 1. Download and run Python installer (I used python-3.7.3-amd64-webinstall.exe). 2. Modify install settings: - Install for all users: yes - Customize install location: "C:\Python37" (don't know if it's relevant, mentioning it just in

[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

2019-06-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: This is the expected behavior. asyncio.ensure_future() returns not a future but a task for your case. Task cancellation requires at least one context switch to finish the task. P.S. I suggest replacing `asyncio.ensure_future()` with `asyncio.create_task()`

[issue37177] IDLE: Search dialogs can be hidden behind the main window

2019-06-08 Thread Tal Einat
Tal Einat added the comment: The issue Irv reported happened on macOS but not on Windows. I've reproduced his issue without this fix, and checked that this fix does indeed fix his issue. For future reference, Irv also posted a video showing his issue on YouTube[1] (he sent a link to

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset c5daae4ef6d09269c95ed1023e76932cc179f309 by Miss Islington (bot) in branch '3.8': bpo-37173: Show passed class in inspect.getfile error (GH-13861) https://github.com/python/cpython/commit/c5daae4ef6d09269c95ed1023e76932cc179f309 --

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset d407d2a7265f6102e51a1d62b3fd28b4f7a78d16 by Miss Islington (bot) (Philipp A) in branch 'master': bpo-37173: Show passed class in inspect.getfile error (GH-13861) https://github.com/python/cpython/commit/d407d2a7265f6102e51a1d62b3fd28b4f7a78d16

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13786 pull_request: https://github.com/python/cpython/pull/13913 ___ Python tracker ___

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think landing the fix to 3.8 only is just fine -- nosy: +asvetlov ___ Python tracker ___ ___

[issue37173] inspect.getfile error names module instead of passed class

2019-06-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37203] Correct classmethod emulation in Descriptor HowTo Guide

2019-06-08 Thread Géry
New submission from Géry : With the current Python equivalent `ClassMethod` implementation of `classmethod` given in Raymond Hettinger's _Descriptor HowTo Guide_, the following code snippet: ``` class A: @ClassMethod def f(cls, *, x): pass print(A.f) A.f(x=3) ``` prints: > .newfunc

[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

2019-06-08 Thread Roland Netzsch
Roland Netzsch added the comment: Python-Version: [stuxcrystal@caprica ~]$ python3.7 --version Python 3.7.3 Additional Notes: Distribution: Fedora 30 (Workstation Edition) Kernel: x86_64 Linux 5.0.9-301.fc30.x86_64 -- ___ Python tracker

[issue33071] Document that PyPI no longer requires 'register'

2019-06-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

2019-06-08 Thread Roland Netzsch
New submission from Roland Netzsch : The attached file produces the following output: wait is still running wait is not set to cancelled! Awaiting cancelled future produced a CancelledError. A look a the documentation does not suggest a need to await the future in order to make

[issue37176] super() docs don't say what super() does

2019-06-08 Thread Géry
Géry added the comment: @Steven D'Aprano > But neither can it *only* look at the MRO of the second class, because that > would restart the search at the top of the hierarchy; also if type(second > argument) was the only thing that mattered, that would make the first > argument redundant and

[issue37176] super() docs don't say what super() does

2019-06-08 Thread Martin Panter
Martin Panter added the comment: Some of the problems brought up here (which sibling or subclass, and which parameter’s MRO) also came up a few years ago in Issue 23674. -- nosy: +martin.panter ___ Python tracker

[issue37188] Creating a ctypes array of an element with size zero causes "Fatal Python error: Floating point exception"

2019-06-08 Thread Stefan Krah
Change by Stefan Krah : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37188] Creating a ctypes array of an element with size zero causes "Fatal Python error: Floating point exception"

2019-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset 3d03a35ba0f162a350898100efc95fdf392070a2 by Stefan Krah (Miss Islington (bot)) in branch '3.8': [3.8] bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (#13911)

[issue37188] Creating a ctypes array of an element with size zero causes "Fatal Python error: Floating point exception"

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13784 pull_request: https://github.com/python/cpython/pull/13911 ___ Python tracker ___

[issue37188] Creating a ctypes array of an element with size zero causes "Fatal Python error: Floating point exception"

2019-06-08 Thread Stefan Krah
Stefan Krah added the comment: New changeset 48f190f79cd89f7ad4409b3c782e462368583309 by Stefan Krah (Eric Wieser) in branch '2.7': [2.7] bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (#13906) https://github.com/python/cpython/commit/48f190f79cd89f7ad4409b3c782e462368583309

[issue36520] Email header folded incorrectly

2019-06-08 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +13782 pull_request: https://github.com/python/cpython/pull/13909 ___ Python tracker ___

[issue36520] Email header folded incorrectly

2019-06-08 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +13783 pull_request: https://github.com/python/cpython/pull/13910 ___ Python tracker ___

[issue37188] Creating a ctypes array of an element with size zero causes "Fatal Python error: Floating point exception"

2019-06-08 Thread Ma Lin
Ma Lin added the comment: > 3.7/3.8 are done 3.7 and master (3.9) are done, 3.8 was missed. -- nosy: +Ma Lin ___ Python tracker ___

[issue18299] Change script_helper to use universal_newlines=True in _assert_python

2019-06-08 Thread hai shi
Change by hai shi : -- pull_requests: +13781 pull_request: https://github.com/python/cpython/pull/13908 ___ Python tracker ___ ___