[issue45171] stacklevel handling in logging module is inconsistent

2022-03-27 Thread Jouke Witteveen
Change by Jouke Witteveen : -- pull_requests: +30220 pull_request: https://github.com/python/cpython/pull/32139 ___ Python tracker <https://bugs.python.org/issue45

[issue45171] stacklevel handling in logging module is inconsistent

2021-11-08 Thread Jouke Witteveen
Jouke Witteveen added the comment: I would expect the opposite. Since the issue is visible only in certain cases (shortcut calls such as `logging.info` over `logger.info`, or redirected calls such as `logger.warn` which adds a stack frame for redirecting to `logger.warning`), any code

[issue45171] stacklevel handling in logging module is inconsistent

2021-09-11 Thread Jouke Witteveen
Change by Jouke Witteveen : -- keywords: +patch pull_requests: +26703 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28287 ___ Python tracker <https://bugs.python.org/issu

[issue45171] stacklevel handling in logging module is inconsistent

2021-09-11 Thread Jouke Witteveen
New submission from Jouke Witteveen : Handling of `stacklevel` in the logging module makes a few unwarranted assumptions, for instance on the depth of the stack due to internal logging module calls. This can be seen for instance when using the shortcut call `logging.warning` to the root

[issue43956] C-API: Incorrect default value for Py_SetProgramName

2021-05-21 Thread Jouke Witteveen
Jouke Witteveen added the comment: It is unclear to me what is holding back the proposed pull request. Is it simply waiting for someone from docs@python to take a look, or did it fall off the radar of vstinner in his related activities to deprecate the legacy API

[issue15003] make PyNamespace_New() public

2021-05-12 Thread Jouke Witteveen
Change by Jouke Witteveen : -- nosy: +joukewitteveen ___ Python tracker <https://bugs.python.org/issue15003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Jouke Witteveen
Change by Jouke Witteveen : -- nosy: +joukewitteveen nosy_count: 2.0 -> 3.0 pull_requests: +24701 pull_request: https://github.com/python/cpython/pull/24876 ___ Python tracker <https://bugs.python.org/issu

[issue43956] C-API: Incorrect default value for Py_SetProgramName

2021-04-27 Thread Jouke Witteveen
New submission from Jouke Witteveen : The default program name is hardcoded in Python/initconfig.c:config_init_program_name. It is "python" on Windows, and "python3" elsewhere. The documentation currently suggests that it is "python" everywhere. Additionally, th