[issue43867] concurrent.futures: handle explicitly SystemExit in managers.Server

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24171 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25441 ___ Python tracker ___ _

[issue43867] concurrent.futures: handle explicitly SystemExit in managers.Server

2021-04-16 Thread STINNER Victor
New submission from STINNER Victor : In bpo-43843, I modified libregrtest to log a warning if a thread raises an uncaught exception. test_concurrent_futures now logs two warnings. s390x Debian 3.x: https://buildbot.python.org/all/#/builders/49/builds/1124 AMD64 RHEL7 3.x: https://buildbot.pyt

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker ___

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 816da333c8ee848dab7c830c561b8df0b8d23915 by Victor Stinner in branch '3.8': bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437) (GH-25440) https://github.com/python/cpython/commit/816da333c8ee848dab7c830c561b8df0b8d239

[issue43817] Add typing.get_annotations()

2021-04-16 Thread Larry Hastings
Larry Hastings added the comment: > Should this feature implemented in typing module? How about inspect module? That's a reasonable idea. Part of the reasoning behind putting it in the typing module was to share its implementation with typing.get_type_hints(). However, I was reading the sou

[issue43866] Installation files of the Python

2021-04-16 Thread Muhammad Hussein Ammari
Muhammad Hussein Ammari added the comment: Sorry, I have Python installed for all users. (not WhatsApp) -- ___ Python tracker ___ _

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24170 pull_request: https://github.com/python/cpython/pull/25440 ___ Python tracker ___ __

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset e1903e11a3d42512effe336026e0c67f602e5848 by Victor Stinner in branch '3.9': bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437) https://github.com/python/cpython/commit/e1903e11a3d42512effe336026e0c67f602e5848 ---

[issue43866] Installation files of the Python

2021-04-16 Thread Muhammad Hussein Ammari
New submission from Muhammad Hussein Ammari : I have WhatsApp installed for all users. (on %ProgramFiles%) Unfortunately, I just saw that installation files of the Python are stored on "%LocalAppData%\Package Cache". Installation files should be stored on "%ProgramData%\Package Cache". The prob

[issue43865] win32_ver and getwindowsversion return different Windows 10 build numbers

2021-04-16 Thread Michael Dudley
New submission from Michael Dudley : On my machine platform.win32_ver() and sys.getwindowsversion() are returning different Windows build numbers. I have confirmed this with Python 3.7.6, 3.8.5, and 3.9.2 (all 64-bit) on Windows 10. platform.win32_ver() returns: ('10', '10.0.18362', 'SP0

[issue43862] warnings: -W option and PYTHONWARNINGS now use the message as a regex

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: > Sadly, the current -W option documentation is wrong :-( I started by writing > PR 25439 to fix the documentation, before changing its behavior. Hum, "wrong" may be too strong. I would say that it is at least misleading. It starts with "file:line: category:

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-04-16 Thread Christian Heimes
Christian Heimes added the comment: It would help us if you or Michael could provide a minimal reproducer of the crash in form of a unit test and submit it as pull request. -- nosy: +christian.heimes versions: +Python 3.10 ___ Python tracker

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-04-16 Thread David Heffernan
David Heffernan added the comment: @Steve as a user of Python rather than a Python developer, I don't know what the process here. I understand the need for a test, and then a fix. And I would not be surprised if the act of fixing the issue led to a broadening of the test if the scope of the

[issue43845] test_concurrent_futures leaks many dangling threads on FreeBSD

2021-04-16 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-04-16 Thread Steve Dower
Steve Dower added the comment: My previous post still stands. This requires a test and then (hopefully) a fix in ctypes or (potentially) a fix upstream in libffi. -- ___ Python tracker _

[issue43862] warnings: -W option and PYTHONWARNINGS now use the message as a regex

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: Sadly, the current -W option documentation is wrong :-( I started by writing PR 25439 to fix the documentation, before changing its behavior. -- ___ Python tracker

[issue43862] warnings: -W option and PYTHONWARNINGS now use the message as a regex

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24169 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25439 ___ Python tracker ___ _

[issue43862] warnings: -W option and PYTHONWARNINGS now use the message as a regex

2021-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue34624 -- nosy: +xtreak ___ Python tracker ___ ___

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-16 Thread STINNER Victor
New submission from STINNER Victor : On Windows, test_importlib logs "DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated (...)". Example: vstinner@DESKTOP-DK7VBIL C:\vstinner\python\master>python -m test -v test_importlib (...) test_find_module_missing (test.test_importli

[issue43863] [Windows] test_distutils logs: DeprecationWarning: bdist_msi command is deprecated since Python 3.9, use bdist_wheel (wheel packages) instead

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue43863] [Windows] test_distutils logs: DeprecationWarning: bdist_msi command is deprecated since Python 3.9, use bdist_wheel (wheel packages) instead

2021-04-16 Thread STINNER Victor
New submission from STINNER Victor : On Windows, test_distutils logs the warning: DeprecationWarning: "bdist_msi command is deprecated (...)". Example: vstinner@DESKTOP-DK7VBIL C:\vstinner\python\master>python -m test -v test_distutils (...) test_skip_build (distutils.tests.test_bdist.BuildTe

[issue43862] warnings: -W option and PYTHONWARNINGS now use the message as a regex

2021-04-16 Thread STINNER Victor
New submission from STINNER Victor : I propose to change the -W command line option and the PYTHONWARNINGS environment variable to use the message as a regular expression in Python 3.10. Or does anyone have a reason to keep the current behavior as it is? -- Python provides two ways to specify

[issue43843] libregrtest: mark a test as failed if a thread logs an unexpected exception

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: test_concurrent_futures logs two warnings. s390x Debian 3.x: https://buildbot.python.org/all/#/builders/49/builds/1124 AMD64 RHEL7 3.x: https://buildbot.python.org/all/#/builders/15/builds/1074 0:03:18 load avg: 4.78 [302/427] test_concurrent_futures passed

[issue28528] Pdb.checkline()

2021-04-16 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland nosy_count: 3.0 -> 4.0 pull_requests: +24168 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25438 ___ Python tracker __

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24167 pull_request: https://github.com/python/cpython/pull/25437 ___ Python tracker ___ __

[issue43843] libregrtest: mark a test as failed if a thread logs an unexpected exception

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset b136b1aac4b7d07e3120ee59e41c02bc86032162 by Victor Stinner in branch 'master': bpo-43843: libregrtest uses threading.excepthook (GH-25400) https://github.com/python/cpython/commit/b136b1aac4b7d07e3120ee59e41c02bc86032162 -- __

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603 by Victor Stinner in branch 'master': bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) https://github.com/python/cpython/commit/75ec103b3adbb7c619a0e22fa60f3d34c5a9e603 -- ___

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24166 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25436 ___ Python tracker ___ _

[issue43842] test_logging: "OSError: [Errno 9] Bad file descriptor" logged on FreeBSD

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: There is a race condition. The main thread closes a file descriptor which is part of the asyncore loop "map", a thread polls on the asyncore "map" file descriptors. -- Main thread -- Close a socket: File "/usr/home/vstinner/python/master/Lib/test/test_lo

[issue41506] Inclusion or documentation of extended with syntax in 3.9

2021-04-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue42238] Deprecate suspicious.py?

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: Julien Palard is working actively on the Python documentation. He is the one who removed suspicious "from the CI and docs builds". I trust his judgment here. I suggest to remove it again from there *and* from the release scripts. --

[issue43861] A potential double free in list_sort_impl

2021-04-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue43861] A potential double free in list_sort_impl

2021-04-16 Thread Yunlongs
New submission from Yunlongs : File: Objects/listobject.c There is a feasible path to trigger a double free if memory limited. Details as follow: In funtion list_sort_impl, it calls merge_collapse(&ms) at line 2,394 and there exist paths to free ms->a.keys: merge_collapse(&ms)->merge_at(ms,

[issue43602] Include Decimal's in numbers.Real

2021-04-16 Thread Oscar Benjamin
Oscar Benjamin added the comment: I've never found numbers.Real/Complex to be useful. The purpose of the ABCs should be that they enable you to write code that works for instances of any subclass but in practice writing good floating point code requires knowing something e.g. the base, preci

[issue43859] Improve syntax error for indentation errors

2021-04-16 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue42238] Deprecate suspicious.py?

2021-04-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Why did you catch them in the release process, and not in the regular Python > development workflow? Because our release tools run suspicious.py and it fails and then we need to manually inspect every single failure and fix it as almost all times th

[issue35056] Test leaks of memory not managed by Python allocator

2021-04-16 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > This issue is about C extension modules which don't use the Python memory > allocator. Yes, I know. Your proposal in msg328533 is to continue the implementation of bpo-18227: > _sqlite: call sqlite3_config(SQLITE_CONFIG_MALLOC, pMem) to use > PyM

[issue43793] [C API] Py_NewInterpreter() cannot be called from a thread which has no Python thread state

2021-04-16 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 582917f8b255801f3c722d89ff2b8d6b17a11590 by Miss Islington > (bot) in branch '3.8': > [3.9] bpo-43723: Revert IDLE doc change (GH-25174) Oh. I didn't notice that https://github.com/python/cpython/commit/b40564727fbe85932e92862e57fc065034d98db

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-16 Thread miss-islington
miss-islington added the comment: New changeset 582917f8b255801f3c722d89ff2b8d6b17a11590 by Miss Islington (bot) in branch '3.8': [3.9] bpo-43723: Revert IDLE doc change (GH-25174) https://github.com/python/cpython/commit/582917f8b255801f3c722d89ff2b8d6b17a11590 --

[issue43844] [easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+

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

[issue35056] Test leaks of memory not managed by Python allocator

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: patch-with-simple-msize.diff: I suggest you opening a new issue to propose using the Python memory allocators in the sqlite module. This issue is about C extension modules which don't use the Python memory allocator. -- _

[issue42238] Deprecate suspicious.py?

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: Pablo: "I every single alpha release I had to fix actual documentation errors (no false positives)" I don't get it. Do you mean that the Python release process is blocked by typos in the documentation? Why did you catch them in the release process, and not i

[issue43844] [easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 471870fc504b0d69c767b188f180b17248be6998 by Victor Stinner in branch 'master': bpo-43844: Fix PendingDeprecationWarning in test_lib2to3 (GH-25407) https://github.com/python/cpython/commit/471870fc504b0d69c767b188f180b17248be6998 -- __

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset a6a5c91b1ee56fa5ba7ab8c5aeca70c31cc85fd3 by Victor Stinner in branch 'master': bpo-40443: Remove unused imports (GH-25429) https://github.com/python/cpython/commit/a6a5c91b1ee56fa5ba7ab8c5aeca70c31cc85fd3 -- __

[issue41282] Deprecate and remove distutils

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 69ca32e0d34fe17dd242592b6f8754cda7bae684 by Victor Stinner in branch 'master': bpo-41282: Fix distutils.utils.byte_compile() DeprecationWarning (GH-25406) https://github.com/python/cpython/commit/69ca32e0d34fe17dd242592b6f8754cda7bae684 --

[issue43602] Include Decimal's in numbers.Real

2021-04-16 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: Probably, this thread https://mail.python.org/archives/list/python-id...@python.org/thread/KOE3MQ5NSMGTLIH6IHAQWTIOELXG4AFQ/ is relevant here. I would appreciate Oscar's feedback on this issue. -- nosy: +oscarbenjamin

[issue43817] Add typing.get_annotations()

2021-04-16 Thread Inada Naoki
Inada Naoki added the comment: Should this feature implemented in typing module? How about inspect module? Additionally, how about adding `get_annotation_str()`, which returns str always? Some use cases (e.g. `help(f)`) need just string. I want to skip eval() in it. -- nosy: +methane

[issue35056] Test leaks of memory not managed by Python allocator

2021-04-16 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Added file: https://bugs.python.org/file49963/patch-with-simple-msize.diff ___ Python tracker ___ ___ Pyt

[issue35056] Test leaks of memory not managed by Python allocator

2021-04-16 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: The msize() talk is referring to msg389039 and msg328533. If we are to use Python memory allocators for the sqlite3 extension module, we need some sort of msize() function; overriding SQLite's memory functions requires msize() support. -- __

[issue35056] Test leaks of memory not managed by Python allocator

2021-04-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, I did not mean using msize() or something like. Since memory is managed outside of Python, we have no a list of allocated blocks. I meant that we can get the total memory used by the Python process (using OS-specific methods) and compare it between ite

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b40564727fbe85932e92862e57fc065034d98dbf by Terry Jan Reedy in branch '3.8': [3.8] bpo-43723: Backport IDLE doc change (GH-25174) https://github.com/python/cpython/commit/b40564727fbe85932e92862e57fc065034d98dbf -- ___

<    1   2