[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names (legacy API)

2020-04-28 Thread R. David Murray
R. David Murray added the comment: As far as I know you currently still have to specify the policy. It was, yes, intended that 'default' become the actual default. I could have sworn there was an open issue for doing this, but I can't find it. I remember having a conversation with

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19080 pull_request: https://github.com/python/cpython/pull/19758 ___ Python tracker ___

[issue40420] argparse choices formatter

2020-04-28 Thread Leonid Ilyevsky
New submission from Leonid Ilyevsky : In my script I have a positional argument with list of choices, and that list is pretty long. The help formatter shows it as one long line, list in curly brackets, comma-separated. This is very difficult to look at and find the choice I need. It would

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
New submission from STINNER Victor : Similarly to bpo-39573 (make PyObject opaque) and bpo-39947 (make PyThreadState opaque), I propose to add getter functions to access PyFrameObject members without exposing the PyFrameObject structure in the C API. The first step is to identify common

[issue40422] Light refactor: create a common _Py_closerange API

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40399] IO streams locking can be broken after fork() with threads

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40415] _asyncio extensions crashes if initialized multiple times in same process

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- superseder: -> Use-after-free crash if multiple interpreters import asyncio module ___ Python tracker ___

[issue40422] Light refactor: create a common _Py_closerange API

2020-04-28 Thread Kyle Evans
New submission from Kyle Evans : Such an API can be used for both os.closerange and subprocess, re-using much of os_closerange_impl. Pull request enroute. -- components: C API messages: 367530 nosy: kevans91 priority: normal severity: normal status: open title: Light refactor: create

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19079 pull_request: https://github.com/python/cpython/pull/19757 ___ Python tracker ___

[issue40418] Small Refactoring: Use bytes.hex() in secrets.token_hex()

2020-04-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7c59d7c9860cdbaf4a9c26c9142aebd3259d046e by Victor Stinner in branch 'master': bpo-40421: Add pyframe.h header file (GH-19755) https://github.com/python/cpython/commit/7c59d7c9860cdbaf4a9c26c9142aebd3259d046e --

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset b8f704d2190125a7750b50cd9b67267b9c20fd43 by Victor Stinner in branch 'master': bpo-40421: Add Include/cpython/code.h header file (GH-19756) https://github.com/python/cpython/commit/b8f704d2190125a7750b50cd9b67267b9c20fd43 --

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset b8f704d2190125a7750b50cd9b67267b9c20fd43 by Victor Stinner in branch 'master': bpo-40421: Add Include/cpython/code.h header file (GH-19756) https://github.com/python/cpython/commit/b8f704d2190125a7750b50cd9b67267b9c20fd43 --

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-04-28 Thread Ethan Onstott
Ethan Onstott added the comment: Ankesh, that is the expected behavior as no patch has been merged yet. -- ___ Python tracker ___

[issue40405] asyncio.as_completed documentation misleading

2020-04-28 Thread Bar Harel
Change by Bar Harel : -- keywords: +patch pull_requests: +19074 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19753 ___ Python tracker

[issue6721] Locks in the standard library should be sanitized on fork

2020-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Related issue: https://bugs.python.org/issue40399 """ IO streams locking can be broken after fork() with threads """ -- ___ Python tracker

[issue40423] Optimization: use close_range(2) if available

2020-04-28 Thread Kyle Evans
New submission from Kyle Evans : This is dependent on issue40422; the diff on top of that (PR19075) looks like the attached. Effectively, close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old

[issue40420] argparse choices formatter

2020-04-28 Thread paul j3
paul j3 added the comment: The display of the choices has been discussed in previous issues. When the choices is long there isn't a clean way of handling the display. I'd suggest using a 'metavar' to show a short value, and then enumerate the choices in the help text. Use the 'Raw' help

[issue40399] IO streams locking can be broken after fork() with threads

2020-04-28 Thread Delgan
Delgan added the comment: Thank you for having looked into the problem. To be more specific, I don't generally mix threads with multiprocessing, but it's a situation where there is one global and hidden consumer thread listening to a queue for non-blocking logging. Actually, I think the

[issue40399] IO streams locking can be broken after fork() with threads

2020-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, as the documentation states, `QueueListener.start` """starts up a background thread to monitor the queue for LogRecords to process""" :-) -- ___ Python tracker

[issue40420] argparse choices formatter

2020-04-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40413] Py_RunMain() crashes on subsequence call

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: I never tried, but I expect that the following pattern is fine: for (i=0; i<5; i++) { Py_Initialize(); Py_RunMain() } Maybe Py_RunMain() must fail with a fatal error if it's called when Python is not initialized. Since Py_RunMain() finalizes Python,

[issue40416] Calling TextIOWrapper.tell() in the middle of reading a gb2312-encoded file causes UnicodeDecodeError

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2020-04-28 Thread Alex Grönholm
Alex Grönholm added the comment: Has this effort gone forwards lately, or has there been any discussion elsewhere? I implemented support for "Z" in .fromisoformat() before finding this issue. Even after reading the discussion I still don't quite understand why it's such a big problem.

[issue40291] socket library support for CAN_J1939

2020-04-28 Thread Guido van Rossum
Guido van Rossum added the comment: Looks reasonable. -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40334] PEP 617: new PEG-based parser

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40419] timeit CLI docs still mention old power sequence

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. This was changed as part of issue28469 where autorange docstring was updated. I guess this was missed out. -- nosy: +serhiy.storchaka, xtreak ___ Python tracker

[issue40422] Light refactor: create a common _Py_closerange API

2020-04-28 Thread Kyle Evans
Change by Kyle Evans : -- keywords: +patch nosy: +kevans nosy_count: 1.0 -> 2.0 pull_requests: +19075 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19754 ___ Python tracker

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19076 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19755 ___ Python tracker ___

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19077 pull_request: https://github.com/python/cpython/pull/19756 ___ Python tracker ___

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19078 pull_request: https://github.com/python/cpython/pull/19756 ___ Python tracker ___

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: With the same traceback and error message? -- ___ Python tracker ___ ___ Python-bugs-list

[issue40424] AIX: parallel build and ld WARNINGS

2020-04-28 Thread Michael Felt
New submission from Michael Felt : Currently, on AIX, whenever the -j option is passed to make there are many WARNINGS from the loader (ld) re: duplicate symbols. While it is not possible to eliminate these warnings completely - as some are not related to the Python build, but external (3rd

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-04-28 Thread Ethan Furman
Ethan Furman added the comment: New changeset d9a43e20facdf4ad10186f820601c6580e1baa80 by Ethan Onstott in branch 'master': bpo-40025: Require _generate_next_value_ to be defined before members (GH-19098) https://github.com/python/cpython/commit/d9a43e20facdf4ad10186f820601c6580e1baa80

[issue36207] robotsparser deny all with some rules

2020-04-28 Thread Fred AYERS
Fred AYERS added the comment: I tried this one http://gtxgamer.fr/robots.txt/;>http://gtxgamer.fr/robots.txt and it seems to work. -- nosy: +Fred AYERS ___ Python tracker

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19085 pull_request: https://github.com/python/cpython/pull/19764 ___ Python tracker ___

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: I looked how Cython uses PyFrameObject: * read f_lasti * read/write f_back * write f_lineno * read f_localsplus * read/write f_trace Details: * Cython/Debugger/libpython.py: code using the Python API of gdb to read PyFrameObject.f_lasti. It it used to

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: Thomas Moreau: "One solution would be to use the `self._shutdown_lock` from the executor to protect the call to `close` in `terminate_broken` and the call to `self._thread_wakeup.wakeup` in `shutdown`. That way, the lock is only acquired at critical points

[issue40425] Refleak in CDataObject

2020-04-28 Thread Cubi
New submission from Cubi : String buffers are not freed when pointers to them (created via ctypes.cast) are deleted, even though those pointers hold references to the string buffer (in tagCDataObject.b_objects, I think). Code examples can be found on StackOverflow.com [1]. Thanks to Mark

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2020-04-28 Thread Steve Dower
Steve Dower added the comment: Yes, the only thing that should be in your Scripts folder after install is pip. Python itself never puts anything there - it's for other things that you may install. Could you try running these environment commands and then try installing pip again? set

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2020-04-28 Thread Chris Withers
Chris Withers added the comment: New changeset 521c8d6806adf0305c158d280ec00cca48e8ab22 by Karthikeyan Singaravelan in branch 'master': bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock" (GH-19734)

[issue40424] AIX: parallel build and ld WARNINGS

2020-04-28 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +19081 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19759 ___ Python tracker ___

[issue40427] importlib of module results in different id than when imported with import keyword

2020-04-28 Thread John Andersen
New submission from John Andersen : When importing a file using importlib the id() of the object being imported is not the same as when imported using the `import` keyword. I feel like this is a bug. As if I have a package which is using relative imports, and then I import all of the files

[issue37340] remove free_list for bound method objects

2020-04-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: This caused a performance regression (70%) for a fundamental operation. See issue 37340. Sometimes, bound methods are used directly and not through LOAD_METHOD: sorted(data, key=str.upper) -- nosy: +rhettinger status: closed -> open

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-28 Thread Chris Withers
Chris Withers added the comment: New changeset 521c8d6806adf0305c158d280ec00cca48e8ab22 by Karthikeyan Singaravelan in branch 'master': bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock" (GH-19734)

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: > With my msg367463 patch (add sleep), test_cancel_futures() fails. The test uses sleep() as a synchronization primitive: executor.submit(time.sleep, .1). That's bad, but it doesn't *have to* be fixed now. My msg367463 patch adds an artifical sleep: the

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19086 pull_request: https://github.com/python/cpython/pull/19765 ___ Python tracker ___

[issue40269] Inconsistent complex behavior with (-1j)

2020-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: Closing this. Please open a separate issue for changing the complex repr if that's the way that you want to go. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python

[issue40427] importlib of module results in different id than when imported with import keyword

2020-04-28 Thread Brett Cannon
Brett Cannon added the comment: That's expected because you are constructing a completely new module object with importlib.util.module_from_spec(). You're also completely circumventing sys.modules with the code you wrote which is the only way you would get equivalent IDs compared to using

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-04-28 Thread Stefan Behnel
Stefan Behnel added the comment: What can we do to move this forward? I see that the original PR was closed in January. Is there or will there be a new one? Can I help with anything? -- ___ Python tracker

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-04-28 Thread E Kawashima
Change by E Kawashima : -- keywords: +patch nosy: +E Kawashima nosy_count: 1.0 -> 2.0 pull_requests: +19087 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19766 ___ Python tracker

[issue39117] Performance regression for making bound methods

2020-04-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: This performance regression in still present in 3.9.0a6 Results from Tools/scripts/var_access_benchmark.py: Python 3.8.2 Python 3.9.0a6 -- read_boundmethod

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2020-04-28 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +19088 pull_request: https://github.com/python/cpython/pull/19768 ___ Python tracker ___

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou: "How about the following (untested): (...)" Using Antoine's patch, test_killed_child() still fails (I used my msg367463 patch to make the failure more likely). -- ___ Python tracker

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: With my msg367463 patch (add sleep), test_cancel_futures() fails. Example: == FAIL: test_cancel_futures (test.test_concurrent_futures.ProcessPoolForkProcessPoolShutdownTest)

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19082 pull_request: https://github.com/python/cpython/pull/19760 ___ Python tracker ___

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset a42ca74fa30227e2f89a619332557cf093a937d5 by Victor Stinner in branch 'master': bpo-40421: Add PyFrame_GetCode() function (GH-19757) https://github.com/python/cpython/commit/a42ca74fa30227e2f89a619332557cf093a937d5 --

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-04-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +19083 pull_request: https://github.com/python/cpython/pull/19762 ___ Python tracker

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-04-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +19084 pull_request: https://github.com/python/cpython/pull/19763 ___ Python tracker ___

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-04-28 Thread Eisuke Kawashima
New submission from Eisuke Kawashima : RFC 3986 (https://tools.ietf.org/html/rfc3986#section-2.1) allows lower hexadecimal digits for percent encoding, but urllib.parse.quote and its variants convert into only UPPERCASE digits [A-F]. I will create a PR for fix. -- components:

[issue40428] [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API)

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19089 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19769 ___ Python tracker ___

[issue37340] remove free_list for bound method objects

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: > This caused a performance regression (70%) for a fundamental operation. See > issue 37340. Which issue? This is bpo-37340. -- ___ Python tracker

[issue40428] [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API)

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: Only PyTuple_ClearFreeList() was exported by PC/python3.def. -- ___ Python tracker ___ ___

[issue40334] PEP 617: new PEG-based parser

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: On x86 Gentoo Non-Debug with X 3.x buildbot, test_peg_generator timed out twice after 15 minutes (first time when tests are run in parallel, then when the test is run sequentially). Maybe the buildbot worker is just slow. On a previous build (749),

[issue37340] remove free_list for bound method objects

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: > sorted(data, key=str.upper) Oh, I guess that it's bpo-39117. -- ___ Python tracker ___ ___

[issue39117] Performance regression for making bound methods

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: I compared sorted(data, key=str.upper) performance between before the removal of the free list (parent of commit 3e54b575313c64f541e98216ed079fafed01ff5d) and the current master branch, I get: Mean +- std dev: [master] 167 us +- 4 us -> [cache] 179 us +- 7

[issue40425] Refleak in CDataObject

2020-04-28 Thread Joseph Sible
Change by Joseph Sible : -- nosy: +Joseph Sible ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39117] Performance regression for making bound methods

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: > read_boundmethod 27.7 ns47.1 ns Extract of Tools/scripts/var_access_benchmark.py: def read_boundmethod(trials=trials, a=A()): for t in trials: a.m;a.m;a.m;a.m;a.m a.m;a.m;a.m;a.m;a.m

[issue39117] Performance regression for making bound methods

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: By the way, in sorted(data, key=str.upper): str.upper is an unbound method, no? $ ./python Python 3.9.0a6+ (heads/master:d9a43e20fa, Apr 28 2020, 23:50:37) >>> type(str.upper) -- ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-04-28 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19091 pull_request: https://github.com/python/cpython/pull/19771 ___ Python tracker ___

[issue40429] [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6d86a2331e6b64a2ae80c1a21f81baa5a71ac594 by Victor Stinner in branch 'master': bpo-40429: PyFrame_GetCode() result cannot be NULL (GH-19772) https://github.com/python/cpython/commit/6d86a2331e6b64a2ae80c1a21f81baa5a71ac594 --

[issue40390] Implement _xxsubinterpreters.channel_send_wait().

2020-04-28 Thread Eric Snow
Eric Snow added the comment: Thanks, Ben. I'll take a look. -- components: +Library (Lib) -C API title: Implement a C API for channel_send_wait for subinterpreters. -> Implement _xxsubinterpreters.channel_send_wait(). ___ Python tracker

[issue40428] [C API] Move PyXXX_ClearFreeLists() functions to the internal C API

2020-04-28 Thread STINNER Victor
New submission from STINNER Victor : The following C functions are implementation details and should not be called directly: - PyAsyncGen_ClearFreeLists() - PyContext_ClearFreeList() - PyDict_ClearFreeList() - PyFloat_ClearFreeList() - PyFrame_ClearFreeList() - PyList_ClearFreeList() -

[issue40428] [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API)

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Remove PyTuple_ClearFreeList() function -> [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API) ___ Python tracker

[issue40428] [C API] Remove PyTuple_ClearFreeList() function

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Move PyXXX_ClearFreeLists() functions to the internal C API -> [C API] Remove PyTuple_ClearFreeList() function ___ Python tracker

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2020-04-28 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +19090 pull_request: https://github.com/python/cpython/pull/19770 ___ Python tracker ___

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The PEP is listed as accepted, with you as the BDFL-delegate, but it lacks a link to the public acceptance message (usually on pydev list). The PR was not rejected by a core dev but was closed without explanation by the author on the same day the last

[issue40429] [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19092 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19772 ___ Python tracker ___

[issue40429] [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence

2020-04-28 Thread STINNER Victor
New submission from STINNER Victor : I recently added PyThreadState_GetFrame() and PyFrame_GetCode() functions to the C API of Python 3.9. Currently, these functions return borrowed references. I asked on capi-sig and Brett confirms that borrowed refrences should be avoided:

[issue40430] ast.Slice is no longer a subclass of ast.slice

2020-04-28 Thread Anthony Sottile
New submission from Anthony Sottile : unclear if this is intentional or not, I noticed this while seeing that `ast.Subscript.slice` is no longer `Index` / `Slice` / `ExtSlice` # python3.8 >>> isinstance(ast.Slice(), ast.slice) True # python3.9a6 >>> isinstance(ast.Slice(), ast.slice) False

[issue40405] asyncio.as_completed documentation misleading

2020-04-28 Thread Kyle Stanley
Kyle Stanley added the comment: Alternatively, I think "can wait for" would also read better than "allows to wait for", if that is preferred over my above suggestion. -- ___ Python tracker

[issue40405] asyncio.as_completed documentation misleading

2020-04-28 Thread Guido van Rossum
Guido van Rossum added the comment: Please work this out in the PR between the two of you, Kyle and Bar. -- ___ Python tracker ___

[issue40405] asyncio.as_completed documentation misleading

2020-04-28 Thread Kyle Stanley
Kyle Stanley added the comment: > based upon the order of completion I forgot to explain this in the above message. I think something that mentions "order of completion" should be included. Although it's implied in the name `as_completed`, to me it seems worthwhile to be fully explicit with

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Avram for the report. I have reopened issue25597. Closing this as the regression change has been reverted for 3.9. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-28 Thread hai shi
hai shi added the comment: > Sadly (again), closing/reopening a PR re-runs all CIs. At the first run, GH > Action macOS job passed. At the second run, the "Tests" step of GH Action > macOS job, but I'm clueless with its logs: (...) Oh, I encountered the same trouble twice :(

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The change has been reverted as per issue39966. I am reopening this for further discussion. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2020-04-28 Thread miss-islington
miss-islington added the comment: New changeset 5e8c691594d68925213d36296ce7c4b3e90bcb1d by Eric Snow in branch 'master': bpo-32604: Add support for a "default" arg in channel_recv(). (GH-19770) https://github.com/python/cpython/commit/5e8c691594d68925213d36296ce7c4b3e90bcb1d --

[issue40429] [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19096 pull_request: https://github.com/python/cpython/pull/19776 ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: It seems like building Python on Windows 64-bit emits a few warnings: D:\a\1\s\Parser\pegen\pegen.c(610,91): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\a\1\s\PCbuild\pythoncore.vcxproj]

[issue40431] turtledemo/__main__.py: SyntaxError: invalid string prefix else"#fca"

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: I don't think that it's worth it to backport the change to 3.7 and 3.8: in Python 3.7 and 3.8, the code is accepted. I also reported the issue to: https://bugs.python.org/issue40334#msg367580 Miro: are you ok to close the issue (not backport)? --

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I personally think the new behaviour is more consistent and more likely to catch errors. -- ___ Python tracker ___

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. The following code works on Python 3.8, but fails with SyntaxError on Python 3.9.0a6 with the old and the new parser (see bpo-40431): clear = "NORMAL" print(dict(state=clear, bg="#d00" if clear else"#fca")) Well, the code looks

[issue38880] Subinterpreters: List interpreters associated with a channel end

2020-04-28 Thread miss-islington
miss-islington added the comment: New changeset f7bbf58aa9299e9dd00b7a1bdd1113b4dcb6dfdf by Lewis Gaul in branch 'master': bpo-38880: List interpreters associated with a channel end (GH-17323) https://github.com/python/cpython/commit/f7bbf58aa9299e9dd00b7a1bdd1113b4dcb6dfdf --

[issue40334] PEP 617: new PEG-based parser

2020-04-28 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +19100 pull_request: https://github.com/python/cpython/pull/19780 ___ Python tracker ___

[issue40429] [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset cc0dc7e484c9626857e9a8b4c40eee37473702ed by Victor Stinner in branch 'master': bpo-40429: Refactor super_init() (GH-19776) https://github.com/python/cpython/commit/cc0dc7e484c9626857e9a8b4c40eee37473702ed --

[issue40428] [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API)

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset ae00a5a88534fd45939f86c12e038da9fa6f9ed6 by Victor Stinner in branch 'master': bpo-40428: Remove PyTuple_ClearFreeList() function (GH-19769) https://github.com/python/cpython/commit/ae00a5a88534fd45939f86c12e038da9fa6f9ed6 --

[issue40428] [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API)

2020-04-28 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40429] [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence

2020-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4386b9045e5fe1151e65c2816264b571eb9f by Victor Stinner in branch 'master': bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781) https://github.com/python/cpython/commit/4386b9045e5fe1151e65c2816264b571eb9f --

[issue40344] Programming FAQ about "What is the most efficient way to concatenate many strings together?" -- Improving the example

2020-04-28 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: -19103 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >