[issue39832] Modules with decomposable characters in module name not found on macOS

2020-03-09 Thread Norbert
Norbert added the comment: Yes, if the Python runtime caches file names and determines based on the cache whether a file exists, then it needs to normalize both the file names in the cache and the name of the file it’s looking for. As far as I know, both HFS and APFS do this themselves when

[issue39923] Command errored out with exit status 1: while jsonlib

2020-03-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please stop creating duplicate issues. You have already reported it at https://bugs.python.org/issue39921. There is also a stack overflow question on this

[issue39923] Command errored out with exit status 1: while jsonlib

2020-03-09 Thread Mageshkumar
New submission from Mageshkumar : hi i have detail issue of while i was install jsonlib, pls kindly provide the solutions *Thanks & Regards* *M.Mageshkumar* -- files: json error.txt messages: 363802 nosy: magesh priority: normal severity: normal status: open title: Command errored out

[issue39922] Remove unused args in Python/compile.c

2020-03-09 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18250 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18893 ___ Python tracker ___

[issue39921] json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue

2020-03-09 Thread Mageshkumar
Mageshkumar added the comment: what i do now *Thanks & Regards* *M.Mageshkumar* On Tue, Mar 10, 2020 at 8:37 AM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > The tracker is for issues related to CPython. It seems like this is

[issue39896] Const args and remove unused args in Python/compile.c

2020-03-09 Thread Andy Lester
Andy Lester added the comment: Replaced by https://bugs.python.org/issue39922 -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39922] Remove unused args in Python/compile.c

2020-03-09 Thread Andy Lester
New submission from Andy Lester : These functions have unnecessary args that can be removed: * binop * compiler_add_o * compiler_next_instr * inplace_binop -- components: Interpreter Core messages: 363799 nosy: petdance priority: normal severity: normal status: open title: Remove

[issue39921] json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue

2020-03-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tracker is for issues related to CPython. It seems like this is a problem with jsonlib. I would suggest following up on their tracker or other forums. -- nosy: +xtreak ___ Python tracker

[issue39921] json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue

2020-03-09 Thread Mageshkumar
New submission from Mageshkumar : C:\WINDOWS\system32>pip install jsonlib Collecting jsonlib Using cached jsonlib-1.6.1.tar.gz (43 kB) Installing collected packages: jsonlib Running setup.py install for jsonlib ... error ERROR: Command errored out with exit status 1: command:

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39920] Pathlib path methods do not work with Window Dos devices

2020-03-09 Thread Charles Machalow
New submission from Charles Machalow : I ran the following as admin in the Python interpreter (on Windows): >>> d = pathlib.Path(r'\\.\PHYSICALDRIVE0') >>> print(d) \\.\PHYSICALDRIVE0\ >>> d.exists() Traceback (most recent call last): File "", line 1, in File

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203 by Victor Stinner in branch 'master': bpo-39877: Deprecate PyEval_InitThreads() (GH-18892) https://github.com/python/cpython/commit/b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203 --

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18249 pull_request: https://github.com/python/cpython/pull/18892 ___ Python tracker ___

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset f8345358bcdd276eb470778daf05d343da9f1290 by Miss Islington (bot) in branch '3.7': bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871) https://github.com/python/cpython/commit/f8345358bcdd276eb470778daf05d343da9f1290 --

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset cadfe52a006abb46ea0948c6ae2e006064b4a091 by Miss Islington (bot) in branch '3.8': bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871) https://github.com/python/cpython/commit/cadfe52a006abb46ea0948c6ae2e006064b4a091 --

[issue37127] Handling pending calls during runtime finalization may cause problems.

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

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 175a704abfcb3400aaeb66d4f098d92ca7e30892 by Victor Stinner in branch 'master': bpo-39877: PyGILState_Ensure() don't call PyEval_InitThreads() (GH-18891) https://github.com/python/cpython/commit/175a704abfcb3400aaeb66d4f098d92ca7e30892

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I tested (run multiple times) daemon_threads_exit.py with slow_exit.patch: no crash. I also tested (run multiple times) stress.py + sleep_at_exit.patch of bpo-37135: no crash. And I tested asyncio_gc.py of bpo-19466: no crash neither. Python finalization

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: > The problem is that Python already freed the memory of all PyThreadState > structures, whereas PyEval_RestoreThread(tstate) dereferences tstate to get > the _PyRuntimeState structure: Funny/not funny, bpo-36818 added a similar bug with commit

[issue36818] Add PyInterpreterState.runtime.

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I added PyInterpreterState.runtime in bpo-36710: commit 01b1cc12e7c6a3d6a3d27ba7c731687d57aae92a Author: Victor Stinner Date: Wed Nov 20 02:27:56 2019 +0100 bpo-36710: Add PyInterpreterState.runtime field (GH-17270) Add

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-24415 as duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue24415] SIGINT always reset to SIG_DFL by Py_Finalize()

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-30654. If it's not the case, please add a comment/reopen the issue. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python

[issue37776] Test Py_Finalize() from a subinterpreter

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-38865. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39919] C extension code reliant on static flags/behavior with PY_DEBUG (Py_SAFE_DOWNCAST, method flags) could potentially leverage _Static_assert

2020-03-09 Thread Enji Cooper
New submission from Enji Cooper : Looking at Py_SAFE_DOWNCAST, it seems that the code could (in theory) leverage _Static_assert on C11 capable compilers [1]. Looking at some other code APIs, like module initialization with METH_VARARGS, etc, there are ways to determine whether or not the

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18248 pull_request: https://github.com/python/cpython/pull/18891 ___ Python tracker ___

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: > At least a build will proceed, and I can look into this new, perhaps > unrelated issue re: socket later. > *** WARNING: renaming "_asyncio" since importing it failed: No module named > '_socket' Do you see any error when the _socket module is built?

[issue39199] Improve the AST documentation

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The first one looks on first inspection "cleaner" but then I tried to look at a random closed bracket/parenthesis like the ones in value=Constant(value=Ellipsis))])])], and trying to guess where that closes

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset add946855ad59c8f5c698aa0891d7e44f018 by Victor Stinner in branch 'master': bpo-39763: Add _bootsubprocess to build Python on AIX (GH-18872) https://github.com/python/cpython/commit/add946855ad59c8f5c698aa0891d7e44f018 --

[issue19466] Clear state of threads earlier in Python shutdown

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I merged more changes in bpo-39877 which made possible to finally fix this issue. -- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.4

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread Michael Felt
Michael Felt added the comment: Comes further. The build finishes, but socket and asyncio are missing... At least a build will proceed, and I can look into this new, perhaps unrelated issue re: socket later. *** WARNING: renaming "_asyncio" since importing it failed: No module named

[issue19466] Clear state of threads earlier in Python shutdown

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9ad58acbe8b90b4d0f2d2e139e38bb5aa32b7fb6 by Victor Stinner in branch 'master': bpo-19466: Py_Finalize() clears daemon threads earlier (GH-18848) https://github.com/python/cpython/commit/9ad58acbe8b90b4d0f2d2e139e38bb5aa32b7fb6 --

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2020-03-09 Thread Ethan Furman
Change by Ethan Furman : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2020-03-09 Thread Ethan Furman
Ethan Furman added the comment: New changeset 8e9c47a947954c997d4b725f4551d50a1d896722 by Pete Wicken in branch 'master': bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks (GH-18757)

[issue39199] Improve the AST documentation

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As you worked much with ast.dump(), what multi-line formatting do you prefer, the current Module( body=[ If( test=Name(id='x', ctx=Load()), body=[ Expr(

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9229105f19705f72e553cf066751ac47c7b7 by Victor Stinner in branch 'master': bpo-39877: take_gil() checks tstate_must_exit() twice (GH-18890) https://github.com/python/cpython/commit/9229105f19705f72e553cf066751ac47c7b7 --

[issue36287] Make ast.dump() not output optional default fields

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b7e9525f9c7ef02a1d2ad8253afdeb733b0951d4 by Serhiy Storchaka in branch 'master': bpo-36287: Make ast.dump() not output optional fields and attributes with default values. (GH-18843)

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18247 pull_request: https://github.com/python/cpython/pull/18890 ___ Python tracker ___

[issue36287] Make ast.dump() not output optional default fields

2020-03-09 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39832] Modules with decomposable characters in module name not found on macOS

2020-03-09 Thread Brett Cannon
Brett Cannon added the comment: The import system makes no attempt at normalizing Unicode strings for path comparisons. One would have to probably update FileFinder (https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py#L1392) somehow (assuming the appropriate

[issue39869] Improve Instance Objects tutorial documentation

2020-03-09 Thread Antoine Wecxsteen
Change by Antoine Wecxsteen : -- keywords: +patch nosy: +awecx nosy_count: 2.0 -> 3.0 pull_requests: +18246 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18889 ___ Python tracker

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18245 pull_request: https://github.com/python/cpython/pull/1 ___ Python tracker ___

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 85f5a69ae1541271286bb0f0e0303aabf792dd5c by Victor Stinner in branch 'master': bpo-39877: Refactor take_gil() function (GH-18885) https://github.com/python/cpython/commit/85f5a69ae1541271286bb0f0e0303aabf792dd5c --

[issue39918] random.Random(False) weird error

2020-03-09 Thread Mark Dickinson
Mark Dickinson added the comment: The lines here look odd to me: https://github.com/python/cpython/blob/363fab83b8a0e6d924c7a7c577feec6a2812bb8c/Modules/_randommodule.c#L290-L291 args[0] = arg; n = PyObject_Vectorcall(_randomstate_global->Long___abs__, args, 0,

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +18243 pull_request: https://github.com/python/cpython/pull/18886 ___ Python tracker ___

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +18244 pull_request: https://github.com/python/cpython/pull/18887 ___ Python tracker ___

[issue27115] IDLE goto should use query.Query subclass

2020-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 363fab83b8a0e6d924c7a7c577feec6a2812bb8c by Terry Jan Reedy in branch 'master': bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871) https://github.com/python/cpython/commit/363fab83b8a0e6d924c7a7c577feec6a2812bb8c --

[issue39852] IDLE: Goto should remove selection and update the status bar

2020-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://github.com/python/devguide/issues/577 -- ___ Python tracker ___ ___ Python-bugs-list

[issue39918] random.Random(False) weird error

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18242 pull_request: https://github.com/python/cpython/pull/18885 ___ Python tracker ___

[issue39918] random.Random(False) weird error

2020-03-09 Thread Miro Hrončok
Miro Hrončok added the comment: Possibly related to https://bugs.python.org/issue32554 https://github.com/python/cpython/pull/15382 Deprecate hashing arbitrary types in random.seed() -- nosy: +hroncok, vstinner ___ Python tracker

[issue39917] new_compiler() called 2nd time causes error

2020-03-09 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38870] Expose ast.unparse in the ast module

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e7cab7f780ac253999512ee86374fc3454342811 by Batuhan Taşkaya in branch 'master': bpo-38870: Simplify sequence interleaves in ast.unparse (GH-17892) https://github.com/python/cpython/commit/e7cab7f780ac253999512ee86374fc3454342811

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 111e4ee52a1739e7c7221adde2fc364ef4954af2 by Victor Stinner in branch 'master': bpo-39877: Py_Initialize() pass tstate to PyEval_InitThreads() (GH-18884) https://github.com/python/cpython/commit/111e4ee52a1739e7c7221adde2fc364ef4954af2

[issue39918] random.Random(False) weird error

2020-03-09 Thread Jerry James
New submission from Jerry James : Python 3.8: >>> import random >>> r = random.Random(False) >>> r Python 3.9 alpha 4: >>> import random >>> r = random.Random(False) Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.9/random.py", line 100, in __init__

[issue39917] new_compiler() called 2nd time causes error

2020-03-09 Thread Todd Levi
New submission from Todd Levi : Action: Run the following command in py36, py37, and py3 for package uvloop python setup.py build_ext --inline bdist_wheel Expected behavior: The package is built and bundled as a wheel. Observed behavior: The build fails at the bdist_wheel stage with the

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18241 pull_request: https://github.com/python/cpython/pull/18884 ___ Python tracker ___

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3225b9f9739cd4bcca372d0fa939cea1ae5c6402 by Victor Stinner in branch 'master': bpo-39877: Remove useless PyEval_InitThreads() calls (GH-18883) https://github.com/python/cpython/commit/3225b9f9739cd4bcca372d0fa939cea1ae5c6402 --

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18240 pull_request: https://github.com/python/cpython/pull/18883 ___ Python tracker ___

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Barney Gale
Barney Gale added the comment: Thanks Rémi and Serhiy! Closing this ticket as the patch doesn't provide any sort of improvement. -- ___ Python tracker ___

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Barney Gale
Change by Barney Gale : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36184] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: -easy resolution: -> fixed stage: patch review -> resolved status: open -> closed title: [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD -> test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset 5854d451cb35ac38bc07b95afeb077e8a35d5c7d by Miss Islington (bot) in branch '3.8': bpo-36184: Port python-gdb.py to FreeBSD (GH-18873) https://github.com/python/cpython/commit/5854d451cb35ac38bc07b95afeb077e8a35d5c7d --

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread miss-islington
miss-islington added the comment: New changeset 1695836123609a8ae97f2cfbe180a028dcd650a3 by Miss Islington (bot) in branch '3.7': bpo-36184: Port python-gdb.py to FreeBSD (GH-18873) https://github.com/python/cpython/commit/1695836123609a8ae97f2cfbe180a028dcd650a3 --

[issue38249] Optimize out Py_UNREACHABLE in the release mode

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset eebaa9bfc593d5a46b293c1abd929fbfbfd28199 by Serhiy Storchaka in branch 'master': bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release mode. (GH-16329)

[issue38249] Optimize out Py_UNREACHABLE in the release mode

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18238 pull_request: https://github.com/python/cpython/pull/18881 ___ Python tracker

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +18239 pull_request: https://github.com/python/cpython/pull/18882 ___ Python tracker ___

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6d0ee60740f2862a878f009671b1aaa75aeb0c2a by Victor Stinner in branch 'master': bpo-36184: Port python-gdb.py to FreeBSD (GH-18873) https://github.com/python/cpython/commit/6d0ee60740f2862a878f009671b1aaa75aeb0c2a --

[issue39904] Move handling of one-argument call of type() from type.__new__() to type.__call__()

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e5ccc94bbb153431698b2391df625e8d47a93276 by Serhiy Storchaka in branch 'master': bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is called with invalid base. (GH-18863)

[issue39904] Move handling of one-argument call of type() from type.__new__() to type.__call__()

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 413f01352a8268fb62bb47bde965462d7b82a06a by Serhiy Storchaka in branch 'master': bpo-39904: Move handling of one-argument call of type() from type.__new__() to type.__call__(). (GH-18852)

[issue34822] Simplify AST for slices

2020-03-09 Thread Guido van Rossum
Guido van Rossum added the comment: I'm going to review the actual code next. Regarding the omission of parentheses in various contexts, I am all for that, but I consider it a separate issue (as it only pertains to ast.unparse()). The fix in https://github.com/python/cpython/pull/17892

[issue39915] AsyncMock doesn't work with asyncio.gather

2020-03-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lisroach, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2020-03-09 Thread Guido van Rossum
Guido van Rossum added the comment: If we introduce a PEG-based parser, we can do this without hacking the tokenizer. See https://github.com/gvanrossum/pegen/issues/229 I'd propose to aim for Python 3.10 (if the PEG parser happens). -- nosy: +gvanrossum

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2020-03-09 Thread Guido van Rossum
Change by Guido van Rossum : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: > AttributeError: 'str' object has no attribute 'decode' Oops, it should now be fixed by my second commit. Please retry PR 18872. -- ___ Python tracker

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Less reliable how? See issue39916. > so it looks like scandir as a small overhead when accumulating all results > and not using the extra info it returns. Try with larger directories. The difference may be not so small. $ python3 -m timeit -s 'from os

[issue39911] "AMD64 Windows7 SP1 3.x" buildbot doesn't build anymore

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: Ah, "x86 Windows7 3.x" worker has the same issue: https://buildbot.python.org/all/#/builders/150/builds/434 -- ___ Python tracker ___

[issue39911] "AMD64 Windows7 SP1 3.x" buildbot doesn't build anymore

2020-03-09 Thread Jeremy Kloth
Jeremy Kloth added the comment: Well, it only doesn't build on 3.9+ (master) due to not being supported going forward. The *buildmaster* needs to be fixed to stop submitting those jobs to unsupported platforms. We need to continue testing 3.7 and 3.8 on Win7 until they go EOL to ensure

[issue39916] More reliable use of scandir in Path.glob()

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18237 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18880 ___ Python tracker

[issue39916] More reliable use of scandir in Path.glob()

2020-03-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Path.glob() uses os.scandir() in the following code. entries = list(scandir(parent_path)) It properly closes the internal file descriptor opened by scandir() if success because it is automatically closed closed when the iterator is exhausted. But

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-09 Thread Michael Felt
Michael Felt added the comment: Almost. The command is run, but not enough of the bootstrap is finished - it seems. File "/data/prj/python/git/python3-3.9/Lib/_aix_support.py", line 54, in _aix_bosmp64 out = out.decode("utf-8").strip().split(":") # type: ignore AttributeError: 'str'

[issue39915] AsyncMock doesn't work with asyncio.gather

2020-03-09 Thread Mads Sejersen
New submission from Mads Sejersen : When calling asyncio.gather the await_args_list is not correct. In the attached minimal example it contains only the latest call and not each of the three actual calls. Expected output: [call(0), call(1), call(2)] [call(1), call(2), call(3)] # or any

[issue39829] __len__ called twice in the list() constructor

2020-03-09 Thread Eric Snow
Eric Snow added the comment: I'm not opposed. :) I just don't want to impose on your time. -- assignee: -> pablogsal resolution: not a bug -> stage: resolved -> status: closed -> open ___ Python tracker

[issue39829] __len__ called twice in the list() constructor

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks Kim and Eric! I think it still makes sense to do some quick benchmarking and research on passing down the calculated length. I can try to produce a draft PR so we can discuss with something more tangible. --

[issue39829] __len__ called twice in the list() constructor

2020-03-09 Thread Eric Snow
Eric Snow added the comment: FWIW, I encouraged Kim to file this. Thanks Kim! While it isn't part of any specification, it is an unexpected change in behavior that led to some test failures. So I figured it would be worth bringing up. :) I did find it surprising that we were not caching

[issue39914] logging.config: '.' (dot) as a key is not documented

2020-03-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39914] logging.config: '.' (dot) as a key is not documented

2020-03-09 Thread Yuta Okamoto
New submission from Yuta Okamoto : I noticed that Configurators in logging.config module accepts '.' (dot) as a key to fill attributes for filters, formatters, and handlers directly like the following: handlers: syslog: class: logging.handlers.SysLogHandler .:

[issue21041] pathlib.PurePath.parents rejects negative indexes

2020-03-09 Thread Julin
Julin added the comment: Can't this be implemented? This is something that a user would expect. Intuitive. And it looks as if it is an easy change to make that doesn't disturb anything else. -- nosy: +ju-sh ___ Python tracker

[issue35775] Add a general selection function to statistics

2020-03-09 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is not how timeit works, you just measured the time taken by an empty loop, you can look at `python3 -m timeit -h` to get help how to call it. I think a correct invocation would be: (venv) ➜ ~ python3 -m timeit -s 'from os import scandir'

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Barney Gale
Barney Gale added the comment: Less reliable how? Doesn't appear any slower: barney.gale@heilbron:~$ python3 -m timeit -s "import os; os.listdir('/usr/local')" 1 loops, best of 3: 0.0108 usec per loop barney.gale@heilbron:~$ python3 -m timeit -s "import os;

[issue39852] IDLE: Goto should remove selection and update the status bar

2020-03-09 Thread Guido van Rossum
Guido van Rossum added the comment: I guess it's similar to the 'return' vs. 'returns' issue, but I feel much stronger about it here. I would have written that as "make the spam module more spammy". Just read a bunch of commits using e.g. `git log --oneline` to see what the prevailing style

[issue39913] Document warnings.WarningMessage ?

2020-03-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: warnings.WarningMessage was added in https://bugs.python.org/issue26568 at the same time than _showwarnmsg_impl() and _formatwarnmsg_impl(). The goal was to have public functions that took them instead of multiple arguments so it could be easily extended in

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3ede1bc794a575a73c6cc74addb5586f4e33a1f5 by Pablo Galindo in branch '3.8': [3.8] bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) (GH-18876)

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 2235e04170503673471d5ec2e7c693cdadcbdc65 by Pablo Galindo in branch '3.7': [3.7] bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) (GH-18877)

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be slower and less reliable implementation of os.listdir(). -- ___ Python tracker ___

[issue39913] Document warnings.WarningMessage ?

2020-03-09 Thread daniel hahler
New submission from daniel hahler : I've noticed that `warnings.WarningMessage` is not documented, i.e. it does not show up in the intersphinx object list. I'm not sure how to document it best, but maybe just describing its attributes? Ref:

[issue39907] `pathlib.Path.iterdir()` wastes memory by using `os.listdir()` rather than `os.scandir()`

2020-03-09 Thread Barney Gale
Barney Gale added the comment: Ah, right you are! The globbing helpers call `list(os.scandir(...))` - perhaps we should do the same here? -- ___ Python tracker ___

  1   2   >