[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
Andreas Schneider added the comment: I forgot, for detecting alignment issues or strict aliasing and this also falls under strict aliasing, you need to turn on optimizations. clang -O2 -Werror -Wcast-align ... -- ___ Python tracker

[issue39943] Meta: Clean up various issues in C internals

2020-03-24 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18513 pull_request: https://github.com/python/cpython/pull/19152 ___ Python tracker ___

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Once you touch the idlelib/*.def files or manually edit the .idlerc/*.cfg files, you are on your own. You could rename any *.def files and try to 'repair' the installation, or delete the *.cfg files and rebuild then through the dialog. You could also

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread Paulo Henrique Silva
Paulo Henrique Silva added the comment: Thanks for the clarifications. I will keep looking for simple modules, no state and easy to migrate but also dedicate more time to work on the more complex like datetime. I'm working on PR19122 corrections. --

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-24 Thread Junyu Zhang
Junyu Zhang added the comment: Thank you for your reply. Yes, under normal circumstances, keys are generally not leaked. I may have only considered the following attacks at the time: 1. If the client script of the distributed process is on another machine, or the key is leaked due to

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Hum, some clarification is needed here. "Port xxx extension module to multiphase initialization (PEP 489)" changes are helping to fix "Py_Finalize() doesn't clear all Python objects at exit", but alone they don't fix all issues. -- For example, if a

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7dd549eb08939e1927fba818116f5202e76f8d73 by Paulo Henrique Silva in branch 'master': bpo-1635741: Port _functools module to multiphase initialization (PEP 489) (GH-19151)

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset f3d5ac47720045a72f7ef5af13046d9531e6007b by Paulo Henrique Silva in branch 'master': bpo-1635741: Port operator module to multiphase initialization (PEP 489) (GH-19150)

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-24 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -m test -v test_datetime test_datetime -m test_divide_and_round == CPython 3.9.0a5+ (heads/pr/19122:0ac3031a80, Mar 25 2020, 02:25:19) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] == Linux-5.5.9-200.fc31.x86_64-x86_64-with-glibc2.30

[issue36144] Dictionary union. (PEP 584)

2020-03-24 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 8f1ed21ecf57cc8b8095d9d1058af2b9b3ed0413 by Curtis Bucher in branch 'master': bpo-36144: Add union operators to WeakValueDictionary584 (#19127) https://github.com/python/cpython/commit/8f1ed21ecf57cc8b8095d9d1058af2b9b3ed0413 --

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread Paulo Henrique Silva
Paulo Henrique Silva added the comment: Updating on my findings on msg364833. It looks like encodings module is not being destoyed at all and keeping all the encoding refs alive. Looks like some cycle but I am not sure yet how to solve it. To validate this, I: - removed codec_search_cach

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- pull_requests: +18512 pull_request: https://github.com/python/cpython/pull/19151 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- pull_requests: +18511 pull_request: https://github.com/python/cpython/pull/19150 ___ Python tracker ___

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

2020-03-24 Thread Jonathan Hsu
Jonathan Hsu added the comment: Thank you for the explanation. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-24 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +patch pull_requests: +18510 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19149 ___ Python tracker

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: > if authkey is not set or leaked, it will cause RCE on the server side In which situation the authkey can be empty? Lib/mulitprocessing/process.py creates an authkey of 256 bits of entropy using: AuthenticationString(os.urandom(32)) It's used by default if

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48999/poc.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Oh, I missed that the PDF contains a link to a PoC: https://github.com/RGDZ-GZU/Python-Remote-code-exec/tree/master/poc I attach a copy to this issue: server.py and poc.py. -- Added file: https://bugs.python.org/file48998/server.py

[issue40024] Add _PyModule_AddType private helper function

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 37fcbb65d4589fbb5a72153e9338cf8e6495f64f by Dong-hee Na in branch 'master': bpo-40024: Update C extension modules to use PyModule_AddType() (GH-19119) https://github.com/python/cpython/commit/37fcbb65d4589fbb5a72153e9338cf8e6495f64f

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18509 pull_request: https://github.com/python/cpython/pull/19148 ___ Python tracker ___

[issue40057] Missing mention of some class attributes in socketserver documentation

2020-03-24 Thread OverMighty
Change by OverMighty : -- keywords: +patch pull_requests: +18507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19147 ___ Python tracker ___

[issue40057] Missing mention of some class attributes in socketserver documentation

2020-03-24 Thread OverMighty
New submission from OverMighty : The documentation of the `socketserver` module of the Python standard library, available here: https://docs.python.org/3/library/socketserver.html, doesn't mention the existence of the following class attributes: StreamRequestHandler.connection (defined at

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
Andreas Schneider added the comment: clang -Werror -Wcast-align ... rpm -q clang9 clang9-9.0.1-8.1.x86_64 Does that help? Found in CI of https://gitlab.com/cwrap/pam_wrapper -- ___ Python tracker

[issue39949] truncating match in regular expression match objects repr

2020-03-24 Thread Seth Troisi
Change by Seth Troisi : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40056] more user-friendly turtledemo

2020-03-24 Thread Evin Liang
New submission from Evin Liang : [minor] 1. Display underscores as spaces in menu bar 2. Allow user to run custom code -- components: Library (Lib) messages: 364961 nosy: Evin Liang priority: normal pull_requests: 18506 severity: normal status: open title: more user-friendly turtledemo

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks for the report and the fix. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 15e5024d04fc89d948ae761d88048bc58a56b650 by Roman Yurchak in branch 'master': bpo-40029 mark test_importlib.test_zip as requiring zlib (#19105) https://github.com/python/cpython/commit/15e5024d04fc89d948ae761d88048bc58a56b650 --

[issue39798] Update and Improve README.AIX

2020-03-24 Thread Michael Felt
Michael Felt added the comment: @BTaskaya - can you elaborate on what issues you ran into? Perhaps open an issue on the repository I started to work on getting this improved. Thanks! -- ___ Python tracker

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Ned: so Linux was also impacted, but Linux only has an issue with more than 65536 groups :-D macOS MAX_GROUPS is now only 16 (Python uses MAX_GROUPS+1)! Maybe MAX_GROUPS was reduced recently. I'm not sure. Anyway, os.getgrouplist() does no longer depend on

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
miss-islington added the comment: New changeset af6fd1faa68f57c11c862624798f8510b7cac68a by Miss Islington (bot) in branch '3.8': bpo-40014: Fix os.getgrouplist() (GH-19126) https://github.com/python/cpython/commit/af6fd1faa68f57c11c862624798f8510b7cac68a --

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
miss-islington added the comment: New changeset 5753fc69977bd9f70ecb4d466bda650efccf9e0a by Miss Islington (bot) in branch '3.7': bpo-40014: Fix os.getgrouplist() (GH-19126) https://github.com/python/cpython/commit/5753fc69977bd9f70ecb4d466bda650efccf9e0a --

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi! I cannot reproduce the error. Could you provide the way to reproduce? thanks -- nosy: +eamanu ___ Python tracker ___

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Since this reference leak is fixed, I reapplied Hai Shi's change for _weakref in bpo-1635741: New changeset 93460d097f50db0870161a63911d61ce3c5f4583 by Victor Stinner in branch 'master': bpo-1635741: Port _weakref extension module to multiphase

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread Alex Budovski
Change by Alex Budovski : -- nosy: -Alex Budovski ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: I managed to identify bpo-40050 (test_importlib reference leak) root issue and to fix it, so I reapplied Hai Shi's change for _weakref. -- ___ Python tracker

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 93460d097f50db0870161a63911d61ce3c5f4583 by Victor Stinner in branch 'master': bpo-1635741: Port _weakref extension module to multiphase initialization (PEP 489) (GH-19140)

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +18505 pull_request: https://github.com/python/cpython/pull/19144 ___ Python tracker ___

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +18504 pull_request: https://github.com/python/cpython/pull/19143 ___ Python tracker ___

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset f5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7 by Victor Stinner in branch 'master': bpo-40014: Fix os.getgrouplist() (GH-19126) https://github.com/python/cpython/commit/f5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7 --

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. I pushed commit 83d46e0622d2efdf5f3bf8bf8904d0dcb55fc322 which should not be controversial. In short, the fix is to remove two unused imports :-D The fix doesn't remove module.__spec__ nor avoid usage of _weakref, it only fix this issue

[issue40013] CSV DictReader parameter documentation

2020-03-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +18502 pull_request: https://github.com/python/cpython/pull/19141 ___ Python tracker

[issue40013] CSV DictReader parameter documentation

2020-03-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +18503 pull_request: https://github.com/python/cpython/pull/19142 ___ Python tracker ___

[issue40013] CSV DictReader parameter documentation

2020-03-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 4b3252cb764807fdb3a661b458d43e4af55cf4df by Juhana Jauhiainen in branch 'master': bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099)

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread Brett Cannon
Brett Cannon added the comment: >From Victor: * Maybe the test_importlib should before save/restore the the "Python state" rather than modifying modules You will have to be more specific than that as there is an import_state() context manager to control import state via the sys module. *

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18501 pull_request: https://github.com/python/cpython/pull/19140 ___ Python tracker ___

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 83d46e0622d2efdf5f3bf8bf8904d0dcb55fc322 by Victor Stinner in branch 'master': bpo-40050: Fix importlib._bootstrap_external (GH-19135) https://github.com/python/cpython/commit/83d46e0622d2efdf5f3bf8bf8904d0dcb55fc322 --

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Just in case, I also ran asyncio_gc.py 10x times on the master branch. I just replaced asyncio.async with asyncio.ensure_future. In short, I consider that the bug is now fixed. I interrupted the test two times with CTRL+c. 9 runs were stopped correctly. 1

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: I ran threading_shutdown_interrupted.py 10 times on the master branch (at commit 9b8e74ca77da7167033917d155e5f55c67b92f14): it does no longer crash. I consider that the root issue is now fixed, so I close again the bug. Thanks Pablo for the helpful

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18500 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19139 ___ Python tracker ___

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset d1c09896c3b91d0ad7e3a14fabecde268f70dac7 by Victor Stinner in branch '3.7': bpo-20526: Fix PyThreadState_Clear(): don't decref frame (GH-19120) (GH-19136) (GH-19137)

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: > pkg_resources comes from python3-setuptools-41.6.0-1.fc31.noarch package. Here is the line which alters warnings filters: $ grep warnings /usr/lib/python3.7/site-packages/pkg_resources/__init__.py (...) warnings.filterwarnings("ignore",

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-03-24 Thread STINNER Victor
New submission from STINNER Victor : Even when no test is run, test_distutils alters the environment: $ ./python -m test -v --fail-env-changed test_distutils -m DONTEXISTS == CPython 3.7.7+ (heads/3.7:1cdc61c767, Mar 24 2020, 17:25:30) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ==

[issue36852] Python3.7.2 fails to cross-compile (yocto / openembedded) when target is mips softfloat

2020-03-24 Thread khoja
khoja added the comment: I had an issue with yocto warrior and zeus branch for target simulation Qemu_x86. I did a report http://bugzilla.yoctoproject.org/show_bug.cgi?id=13842 Thank you to let me know what you think about It. -- nosy: +medhi type: -> compile error versions:

[issue40054] Allow formatted strings as docstrings

2020-03-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue28739 -- nosy: +xtreak ___ Python tracker ___

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18499 pull_request: https://github.com/python/cpython/pull/19137 ___ Python tracker ___

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset e97c8b0688bc62959ced477d842fcd37992ef649 by Victor Stinner in branch '3.8': bpo-20526: Fix PyThreadState_Clear(): don't decref frame (GH-19120) (GH-19136) https://github.com/python/cpython/commit/e97c8b0688bc62959ced477d842fcd37992ef649

[issue20899] Nested namespace imports do not work inside zip archives

2020-03-24 Thread Thomas Heller
Change by Thomas Heller : -- nosy: -theller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40054] Allow formatted strings as docstrings

2020-03-24 Thread Eric V. Smith
Eric V. Smith added the comment: The problem is that __doc__ is set at compile time, not run time. The ''.format call (and f-strings) are evaluated at run time. -- nosy: +eric.smith ___ Python tracker

[issue20899] Nested namespace imports do not work inside zip archives

2020-03-24 Thread Jonathan Hsu
Jonathan Hsu added the comment: It appears this issue has been fixed, as I am unable to reproduce it on Windows 10/Python 3.7: Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18498 pull_request: https://github.com/python/cpython/pull/19136 ___ Python tracker ___

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5804f878e779712e803be927ca8a6df389d82cdf by Victor Stinner in branch 'master': bpo-20526: Fix PyThreadState_Clear(): don't decref frame (GH-19120) https://github.com/python/cpython/commit/5804f878e779712e803be927ca8a6df389d82cdf --

[issue40054] Allow formatted strings as docstrings

2020-03-24 Thread Richard Neumann
New submission from Richard Neumann : Currently only plain strings can be used as docstrings, such as: class Foo: """Spamm eggs.""" For dynamic class generation, it would be useful to allow format strings as docstrings as well: doc = 'eggs' class Foo: """Spamm

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18497 pull_request: https://github.com/python/cpython/pull/19135 ___ Python tracker ___

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18496 pull_request: https://github.com/python/cpython/pull/19135 ___ Python tracker ___

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-24 Thread Petr Viktorin
Petr Viktorin added the comment: Moved to Discourse, IMO that's a better place for maintainers of other PEP-3118-compatible libraries to chime in: https://discuss.python.org/t/behavior-of-struct-format-native-bool/3774 -- ___ Python tracker

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: > Before _weakref is converted to multiphase initialization: > (...) > => same module That's because modules which don't use the multiphase initialization are cached in _PyImport_FixupExtensionObject(): see msg364914 for details. Next calls to

[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Quick & dirty workaround: diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 7353bf9a78..d988552f2d 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -1620,7 +1620,10

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: > Code extremely simplified: (...) Relationship between origin unmodified code and the extremely simplified code: * Lib/test/test_importlib/__init__.py: load_tests() is called at each "test -R 3:3" iteration * Lib/test/test_importlib/test_windows.py: at

[issue40049] tarfile cannot extract from stdin

2020-03-24 Thread Danijel
Change by Danijel : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Code extremely simplified: --- import unittest import sys import _imp class ModuleSpec: pass class Tests(unittest.TestCase): def test_import_fresh(self): spec = ModuleSpec() spec.sys_weakref = sys.modules["_weakref"] spec.name

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-24 Thread Petr Viktorin
Petr Viktorin added the comment: I see. Thanks for your patience explaining this to me! I will merge and continue in a different issue. -- ___ Python tracker ___

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-24 Thread miss-islington
miss-islington added the comment: New changeset 472fc843ca816d65c12f9508ac762ca492165c45 by Stefan Krah in branch 'master': bpo-39689: Do not use native packing for format "?" with standard size (GH-18969) https://github.com/python/cpython/commit/472fc843ca816d65c12f9508ac762ca492165c45

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: > File 1: Oops, you should read: File 1: Lib/test/test_leak.py -- ___ Python tracker ___ ___

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: With the latest Lib/importlib3.py, there are less leaked references, but there are still leaked references: test_leak leaked [139, 139, 139] references, sum=417 test_leak leaked [42, 42, 42] memory blocks, sum=126 --

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the leak with command: ./python -m test -R 3:3 test_leak File 1: --- import unittest import sys from importlib import _bootstrap as BOOTSTRAP def _save_and_remove_module(name, orig_modules): """Helper function to save and remove a

[issue39615] cpython/abstract.h not compatible with C90

2020-03-24 Thread Peter Eisentraut
Peter Eisentraut added the comment: 3.9.0a5 fixes my original issue. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2020-03-24 Thread Zbynek Winkler
Change by Zbynek Winkler : -- nosy: +Zbynek.Winkler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2020-03-24 Thread Zbynek Winkler
Change by Zbynek Winkler : -- nosy: +Zbynek.Winkler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39672] Segmentation fault on shutdown with shelve & c pickle

2020-03-24 Thread zd nex
Change by zd nex : -- title: SIGSEGV crash on shutdown with shelve & c pickle -> Segmentation fault on shutdown with shelve & c pickle ___ Python tracker ___

[issue40053] Document the behavior that no interplotation is applied when no *args are passed in for logging statements

2020-03-24 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's important that logging has this feature for the reasons stated, so it should be documented. And hopefully it's also tested for, but I haven't looked. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy:

[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-24 Thread Ard Kuijpers
Ard Kuijpers added the comment: It would be helpful to have a better error message than '[Errno 22] Invalid argument' on Windows, so a ValueError seems to be a good idea at the moment. -- ___ Python tracker

[issue40053] Document the behavior that no interplotation is applied when no *args are passed in for logging statements

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

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
Change by Andreas Schneider : -- type: -> compile error versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40053] Document the behavior that no interplotation is applied when no *args are passed in for logging statements

2020-03-24 Thread Nan Hua
New submission from Nan Hua : As I see, Python's logging module's implementation has a nice property that, when no additional args are passed in, the msg (first argument) will be directly printed. For example, logging.error('abc %s') can be handled peacefully with printing "ERROR:root:abc

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +18494 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19133 ___ Python tracker

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
New submission from Andreas Schneider : In file included from /builds/cryptomilk/pam_wrapper/src/python/pypamtest.c:21: In file included from /usr/include/python3.8/Python.h:147: In file included from /usr/include/python3.8/abstract.h:837: /usr/include/python3.8/cpython/abstract.h:91:11: error: