[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: I found this issue while working on bpo-42591 which exported the missing Py_FrozenMain() symbol. -- ___ Python tracker ___ _

[issue42651] Title: Recursive traceback crashes Python Interpreter

2020-12-16 Thread Xinmeng Xia
New submission from Xinmeng Xia : = import traceback def foo(): traceback.print_exc() foo() foo() Try running the above program, the interpreter is crashed with the error message like the following: Fatal Python error: Cannot recover from stack ove

[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: Tools/freeze/freeze.py is broken for 4 years, since Python 3.6 which added sys.implementation._multiarch to the config directory in sysconfig: commit 5553231b91e05cf93827b33a79aebe62c4370a09 Author: d...@ubuntu.com Date: Tue Jun 14 08:55:19 2016 +0200

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: Christian Bachmaier: > Thus, when trying the provided freeze example via > freeze.py hello.py & make Do you mean freeze.py from Tools/freeze/freeze.py? This tool seems to be broken for 4 years, since Python 3.6: bpo-42613. > 4. freeze.py wants wants this for

[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: There are better maintained alternatives: * PyOxidizer * pyInstaller * bbFreeze * py2exe * cx_Freeze * py2app * etc. -- ___ Python tracker _

[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22648 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23792 ___ Python tracker ___ _

[issue42519] [C API] Upgrade the C API in extension modules

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

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-16 Thread Christian Bachmaier
Christian Bachmaier added the comment: > Do you mean freeze.py from Tools/freeze/freeze.py? Yes, unfortunately I have to keep a large old system running and there are only few options left. It is a University learning system, where students upload program code and then a huge amount of autom

[issue42443] Provide Thread creation hook support

2020-12-16 Thread Piotr Stanczyk
Piotr Stanczyk added the comment: Friendly ping - does the proposal sound fine? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue42652] recursive in finally clause cause Python interpreter crash.

2020-12-16 Thread Xinmeng Xia
New submission from Xinmeng Xia : Considering the following two program,running the program 1 will get expected output: RecursionError program 1 === import traceback def foo(): try: 1/0 except Exception as e: traceback.p

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

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22649 pull_request: https://github.com/python/cpython/pull/23793 ___ Python tracker ___

[issue10141] SocketCan support

2020-12-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +22650 pull_request: https://github.com/python/cpython/pull/23794 ___ Python tracker ___ ___

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib) -asyncio ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22651 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23795 ___ Python tracker ___ _

[issue42653] Expose ISO-TP Contants for Linux >= 5.10

2020-12-16 Thread Stefan Tatschner
New submission from Stefan Tatschner : Linux >= 5.10 gained a new SocketCAN module called ISOTP. This is an implementation of ISO 15765-2 which is mainly used in vehicle CAN networks. Expose the constants from linux/can/isotp.h in the socket module. These constants are not entirely new. Previ

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: I didn't see the failure recently, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: test_gdb pass again on AMD64 Fedora Rawhide 3.x with "GNU gdb (GDB) Fedora 10.1-2.fc34": https://buildbot.python.org/all/#/builders/285/builds/348 0:02:52 load avg: 11.34 [242/426] test_gdb passed (1 min 28 sec) (...) I close the issue. -- resolutio

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
New submission from Mario Corchero : Following the conversations in https://bugs.python.org/issue33944, wanted to discuss the support for a __sitecustomize__ folder that will hold python scripts to be executed at startup. Similar to `sitecustomize.py` but allowing different stakeholders of a

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
Change by Mario Corchero : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22653 pull_request: https://github.com/python/cpython/pull/23796 ___ Python tracker _

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +22654 pull_request: https://github.com/python/cpython/pull/23797 ___ Python tracker ___ __

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d by Matthias Bussonnier in branch 'master': bpo-42644: Validate values in logging.disable() (#23786) https://github.com/python/cpython/commit/b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d --

[issue33129] Add kwarg-only option to dataclass

2020-12-16 Thread conchylicultor
conchylicultor added the comment: For the API, I think we could add this feature with a single new `dataclass(kw_only: bool | str)` ``` @dataclasses.dataclass(kw_only=True) class A: a: int b: int c: int # A(*, a, b, c) @dataclasses.dataclass(kw_only='b') class A: a: int b: int

[issue42655] Fix subprocess extra_groups gid conversion

2020-12-16 Thread Jakub Kulik
New submission from Jakub Kulik : C function `subprocess_fork_exec` incorrectly transforms gids from the `extra_groups` argument because it passes `unsigned long*` rather than `pid_t*` into the `_Py_Gid_Converter()`. Assuming that `gid_t` is 32 bit and `unsigned long` is 64 bit (which it ofte

[issue42655] Fix subprocess extra_groups gid conversion

2020-12-16 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +22655 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23762 ___ Python tracker ___

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread miss-islington
miss-islington added the comment: New changeset 0a24a57888798905e3b8891c59e61ed4f1bfc5a8 by Miss Islington (bot) in branch '3.8': bpo-42644: Validate values in logging.disable() (GH-23786) https://github.com/python/cpython/commit/0a24a57888798905e3b8891c59e61ed4f1bfc5a8 --

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread miss-islington
miss-islington added the comment: New changeset db63da7e5d4a98925a04f903a19bf3595b9c2c46 by Miss Islington (bot) in branch '3.9': bpo-42644: Validate values in logging.disable() (GH-23786) https://github.com/python/cpython/commit/db63da7e5d4a98925a04f903a19bf3595b9c2c46 --

[issue40364] asyncio: replace _compute_returncode() with os.waitstatus_to_exitcode()

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22656 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23798 ___ Python tracker ___ _

[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 79782fe4f8cf73d7fdf8db02073bbadf7ff817b6 by Victor Stinner in branch 'master': bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795) https://github.com/python/cpython/commit/79782fe4f8cf73d7fdf8db02073bbadf7ff817b6 -- _

[issue42656] prime numbers loop issue

2020-12-16 Thread Валерій Марцишин
New submission from Валерій Марцишин : I have written a program which must show prime numbers. At the beginning it does, but from some moment it doesn't work properly, despite the fact that it is a loop. I suspect there is a bug somewhere, if not, I'll be thankful if you tell me the issue.

[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: I failed to reproduce the issue. Let's hope that replacing send() with sendall() is enough to fix the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 __

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Shouldn't this be discussed on Python-Ideas? I'm pretty sure this is a big enough change that it will need a PEP. If you need code run on startup, can't you just put it in the PYTHONSTARTUP file? -- nosy: +steven.daprano __

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
Mario Corchero added the comment: > Shouldn't this be discussed on Python-Ideas? I'm pretty sure this is a big > enough change that it will need a PEP. Indeed, I wanted to see if there was interest in the feature. That is probably a better place to start. > If you need code run on startup,

[issue42656] prime numbers loop issue

2020-12-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hello valeriymartsyshyn, This is for reporting bugs in the Python interpreter, it is not a help desk for learning how to program in Python. There are many places you can ask for help to debug your code, such as Reddit's r/learnpython, or Stackoverflow, or t

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Additionally, it suffers from the same issue as > sitecustomize. It is a single file that won't be a real substitute for > code execution in pth files. I thought that the consensus in b.p.o. #33944 is that code execution in pth files is an anti-feature t

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5f0fe8ec70120f4586d08978b0911b436f82c421 by Serhiy Storchaka in branch 'master': bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785) https://github.com/python/cpython/commit/5f0fe8ec70120f4586d08978b0911b436f82c421 --

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22657 pull_request: https://github.com/python/cpython/pull/23799 ___ Python tracker _

[issue42641] Deprecate os.popen() function

2020-12-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: > There is also the os.system() function which exposes the libc system() > function. Should we deprecate this one as well? Please don't deprecate os.system. For quick and dirty scripts used in trusted environments with trusted data, it is simple to use, eff

[issue42657] Python 3.9.1 building process could not use local standard library

2020-12-16 Thread xz_sophos
New submission from xz_sophos : When trying to build python 3.9.1 on Mac OSX 10.15, one of the building step by make is to run this command: DYLD_FRAMEWORK_PATH=/Users/jenkins/BaseFolder/savmac-python ./python.exe -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread miss-islington
miss-islington added the comment: New changeset cd7412e3c4a2805009d0baa948cd4026d6fa6f3d by Miss Islington (bot) in branch '3.9': bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785) https://github.com/python/cpython/commit/cd7412e3c4a2805009d0baa948cd4026d6fa6f3d --

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread 雅雯
雅雯 added the comment: 周zhtw1234 -- hgrepos: +395 nosy: +zhtw1234 Added file: https://bugs.python.org/file49686/IMAG0215(5).jpg ___ Python tracker ___ __

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread 雅雯
雅雯 added the comment: 幹你娘 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg383146 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg383147 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread 雅雯
雅雯 added the comment: 你娘老雞歪 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailma

[issue42238] Deprecate suspicious.py?

2020-12-16 Thread Julien Palard
Julien Palard added the comment: Today I spotted one error that suspicious could have spotted: -both ``Callable``s no longer validate their ``argtypes``, in +both ``Callable``\ s no longer validate their ``argtypes``, in I'm fixing it in https://github.com/python/cpython/pull/23800

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg383148 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread Ned Deily
Change by Ned Deily : Removed file: https://bugs.python.org/file49686/IMAG0215(5).jpg ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-12-16 Thread Ned Deily
Change by Ned Deily : -- hgrepos: -395 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue40364] asyncio: replace _compute_returncode() with os.waitstatus_to_exitcode()

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 99d28c56708bff1f442e1df5748adb2620542c61 by Victor Stinner in branch 'master': bpo-40364: asyncio uses os.waitstatus_to_exitcode() (GH-23798) https://github.com/python/cpython/commit/99d28c56708bff1f442e1df5748adb2620542c61 -- ___

[issue40364] asyncio: replace _compute_returncode() with os.waitstatus_to_exitcode()

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___

[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c653f17cb84d81df3a74ab0b42140d2bb68c5c4 by Victor Stinner in branch 'master': bpo-42613: Fix freeze.py config directory (GH-23792) https://github.com/python/cpython/commit/1c653f17cb84d81df3a74ab0b42140d2bb68c5c4 -- _

[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

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

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-12-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, I am quite confused about what's going on with pidigits and regex_v8. I will try to run the benchmarks again. Did you compare the current master against the PR? If that's the case we should rebase the PR it first to make sure we are comparing it c

[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: I tested my fix with these commands: --- ./configure --with-platlibdir=lib64 --enable-shared --prefix /opt/py310 CFLAGS="-O0" make make install # move outside CPython source tree cd mkdir hello cd hello echo 'print("hello")' > hello.py cp -R ~/python/master

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: Christian Bachmaier: > The symlink does the trick. So it may be easy for you to fix that, so it does > operate out of the box again. I pushed a fix in bpo-42613. It would be great if you could test it. See my manual test: https://bugs.python.org/issue42613#m

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

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8203c73f3bb1f51614279b6e23af2ec587d1fa22 by Victor Stinner in branch 'master': bpo-1635741: Refactor _threadmodule.c (GH-23793) https://github.com/python/cpython/commit/8203c73f3bb1f51614279b6e23af2ec587d1fa22 -- _

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-16 Thread Christian Bachmaier
Christian Bachmaier added the comment: Vistor Stinner: > If you can test it, I can backport the fix to stable branches. Seems to work like a charm. Basically I used the same testing setup as previously on Dec 10th under Debian testing/bullseye without step 2, as master already contains your

[issue40821] os.getlogin() not working

2020-12-16 Thread Philipp Gortan
Change by Philipp Gortan : -- nosy: +mephinet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-16 Thread Mark Shannon
Mark Shannon added the comment: New changeset c71581c7a4192e6ba9a79eccc583aaadab300efa by Om G in branch 'master': bpo-42615: Delete redundant jump instructions that only bypass empty blocks (GH-23733) https://github.com/python/cpython/commit/c71581c7a4192e6ba9a79eccc583aaadab300efa --

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-16 Thread Steve Dower
Steve Dower added the comment: Sorry, I haven't had a chance to set up a test machine with all the requirements. It's almost certainly something in jpype, to be clear. Most likely it loads a DLL that hasn't been loaded yet, but does it under conditions where it won't load. Nothing we build

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2020-12-16 Thread Mark Shannon
Mark Shannon added the comment: https://github.com/python/cpython/pull/23780 fixes the finally handling. The if-break case was fixed by earlier changes. -- ___ Python tracker

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-12-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: OK, I have repeated the benchmarks after rebasing and this is what I get: venv ❯ python -m pyperf compare_to json/2020-12-16_11-20-master-8203c73f3bb1.json.gz json/2020-12-16_11-22-load_method-21b1566125b3.json.gz -G --min-speed=1 Slower (13): - regex_

[issue40821] os.getlogin() not working

2020-12-16 Thread Christian Heimes
Christian Heimes added the comment: errno 6 is ENXIO. According to https://www.man7.org/linux/man-pages/man3/getlogin.3.html the error code means "The calling process has no controlling terminal.". os.getlogin() returns the name of the user logged in on the controlling terminal of the proce

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-12-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think I am closing the PR as it seems that the gains are not good enough (and there is quite a lot of noise by comparing the benchmarks together). -- ___ Python tracker

[issue42658] os.path.normcase() is inconsistent with Windows file system

2020-12-16 Thread sogom
New submission from sogom : On Windows file system, U+03A9 (Greek capital letter Omega) and U+2126 (Ohm sign) are distinguished. In fact, two distinct files "\u03A9.txt" and "\u2126.txt" can exist side by side in the same folder. But os.path.normcase() transforms both U+03A9 and U+2126 to U+0

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
Mario Corchero added the comment: Thread open in Python ideas: https://discuss.python.org/t/add-folder-for-python-customizations-sitecustomize/6190/5 -- ___ Python tracker __

[issue42645] break/continue or return in finally block occurs twice in trace.

2020-12-16 Thread Mark Shannon
Mark Shannon added the comment: New changeset 5274b682bc93a04da8a69742528ac7f64633a96e by Mark Shannon in branch 'master': bpo-42645: Make sure that return/break/continue are only traced once when exiting via a finally block. (GH-23780) https://github.com/python/cpython/commit/5274b682bc93a0

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

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset fcc6935384b933fbe1a1ef659ed455a3b74c849a by Victor Stinner in branch 'master': Add symbols of the stable ABI to python3dll.c (GH-23598) https://github.com/python/cpython/commit/fcc6935384b933fbe1a1ef659ed455a3b74c849a -- _

[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset fcc6935384b933fbe1a1ef659ed455a3b74c849a by Victor Stinner in branch 'master': Add symbols of the stable ABI to python3dll.c (GH-23598) https://github.com/python/cpython/commit/fcc6935384b933fbe1a1ef659ed455a3b74c849a -- _

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

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset fcc6935384b933fbe1a1ef659ed455a3b74c849a by Victor Stinner in branch 'master': Add symbols of the stable ABI to python3dll.c (GH-23598) https://github.com/python/cpython/commit/fcc6935384b933fbe1a1ef659ed455a3b74c849a -- _

[issue37194] Move new vector private declarations to the internal C API

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset fcc6935384b933fbe1a1ef659ed455a3b74c849a by Victor Stinner in branch 'master': Add symbols of the stable ABI to python3dll.c (GH-23598) https://github.com/python/cpython/commit/fcc6935384b933fbe1a1ef659ed455a3b74c849a -- _

[issue37194] Move new vector private declarations to the internal C API

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22660 pull_request: https://github.com/python/cpython/pull/23801 ___ Python tracker ___ __

[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22661 pull_request: https://github.com/python/cpython/pull/23801 ___ Python tracker ___ __

[issue42415] python3.lib in Python3.9.0 Windows distribution does not contain PyObject_CallNoArgs symbol

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 7.0 -> 8.0 pull_requests: +22658 pull_request: https://github.com/python/cpython/pull/23801 ___ Python tracker ___ ___

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

2020-12-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22659 pull_request: https://github.com/python/cpython/pull/23801 ___ Python tracker ___ __

[issue42415] python3.lib in Python3.9.0 Windows distribution does not contain PyObject_CallNoArgs symbol

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: commit fcc6935384b933fbe1a1ef659ed455a3b74c849a Author: Victor Stinner Date: Wed Dec 16 15:08:23 2020 +0100 Add symbols of the stable ABI to python3dll.c (GH-23598) Add the following symbols to python3dll.c: * PyFrame_GetCode (bpo-4042

[issue42238] Deprecate suspicious.py?

2020-12-16 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +22662 pull_request: https://github.com/python/cpython/pull/23802 ___ Python tracker ___ ___

[issue42238] Deprecate suspicious.py?

2020-12-16 Thread Julien Palard
Julien Palard added the comment: I created https://github.com/python/cpython/pull/23802 with a port of the "wrong backtick detector" (at least, one aspect from it) from suspicious to rstlint. I dropped the suspicious check three weeks ago, and found a single committed issue since then, whic

[issue42033] Seemingly unnecessary complexification of foo(**kw)

2020-12-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: Even if making a copy is necessary when the underlying function receives the dict "raw", preemptively performing the copy (before knowing if the function being called is a Vectorcall function) means that when it's a Vectorcall function (e.g. all user-defined

[issue42629] PyObject_Call not behaving as documented

2020-12-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: Pingback from #42033. Proper fix for that issue likely involves moving the work for copying kwargs into PyObject_Call, which would fix this bug by side-effect. -- nosy: +josh.r ___ Python tracker

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-16 Thread Om G
Change by Om G : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2020-12-16 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +22663 pull_request: https://github.com/python/cpython/pull/23803 ___ Python tracker ___

[issue42659] Objects of uname_result Class Cannot be Successfully Pickled

2020-12-16 Thread CrocoDuck
New submission from CrocoDuck : See the code example below. ```python import platform import pickle pack = { 'uname_result': platform.uname() } with open('test.pickle', 'wb') as f: pickle.dump(pack, f, protocol=pickle.HIGHEST_PROTOCOL) with open('test.pickle', 'rb') as f: data =

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: The problem can be simplified to this x.c file: --- static int invalid_day(unsigned int day) { return (day < 0 || day > 6); } int main() { invalid_day(3); return 0; } --- GCC emits the warning: $ gcc x.c -o x -O3 -Wall -Wextra x.c: In function 'i

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-16 Thread Karl Nelson
Karl Nelson added the comment: I am fairly sure this is a Python "bug" in the sense that there was some change in undocumented change in requirements and the distutils pattern for building a module no longer reflects that requirement. That said very likely JPype is the only module to be af

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset aefb69b23f056c61e82ad228d950f348de090c70 by Victor Stinner in branch 'master': bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) https://github.com/python/cpython/commit/aefb69b23f056c61e82ad228d950f348de090c70 -- ___

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-12-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22664 pull_request: https://github.com/python/cpython/pull/23804 ___ Python tracker _

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: The 3 compiler warnings are now fixed in master, and a 3.9 backport will land as soon as the CI tests pass. Thanks everyone who helped to fix these warnings. I know that the solution is not perfect, but we have to deal with C language limitations. -

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: Fixing these compiler warnings helps PR 18532 "[workflow] Use MSVC problem matcher for Windows action build". -- ___ Python tracker ___

[issue42660] _zoneinfo.c incorrectly checks bounds of `day` variable in calenderrule_new

2020-12-16 Thread Paul Ganssle
New submission from Paul Ganssle : This is a code style issue — in https://github.com/python/cpython/pull/23614, a regression was deliberately introduced to satisfy an overzealous compiler. The `day` variable has logical bounds `0 <= day <= 6`. In the original code, both sides of this boundary

[issue37961] Tracemalloc traces do not include original stack trace length

2020-12-16 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed nosy_count: 2.0 -> 3.0 pull_requests: +22665 pull_request: https://github.com/python/cpython/pull/23805 ___ Python tracker ___ _

[issue23915] [doc] traceback set with BaseException.with_traceback() pushed back on raise

2020-12-16 Thread Julien Palard
Julien Palard added the comment: New changeset c590c2338e5a36cf3ce5b55e6d366a0675ed1db5 by Irit Katriel in branch 'master': bpo-23915: update and elucidate documentation of with_traceback (GH-23680) https://github.com/python/cpython/commit/c590c2338e5a36cf3ce5b55e6d366a0675ed1db5 --

[issue23915] [doc] traceback set with BaseException.with_traceback() pushed back on raise

2020-12-16 Thread Julien Palard
Change by Julien Palard : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue42660] _zoneinfo.c incorrectly checks bounds of `day` variable in calenderrule_new

2020-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think there is any problem *now*. The type of day is uint8_t, it cannot be negative. BTW, why is it uint8_t? Would not be easier to use type int by default? I doubt that it saves memory or makes the code faster. -- nosy: +serhiy.storchaka

[issue42659] Objects of uname_result Class Cannot be Successfully Pickled

2020-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue42189. -- components: +Library (Lib) nosy: +jaraco, serhiy.storchaka ___ Python tracker ___ _

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-12-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7492b55ea0ca993c353b6373341b92e40faa9c4d by Miss Islington (bot) in branch '3.9': bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804) https://github.com/python/cpython/commit/7492b55ea0ca993c353b6373341b92e40faa9c4d -

  1   2   >