[issue42261] Windows legacy I/O mode mistakenly ignores the device encoding

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: > This is based on config_init_stdio_encoding() in Python/initconfig.c, which > sets config->stdio_encoding via config_get_locale_encoding(). Cannot > config->stdio_encoding be set to NULL for default behavior? I would like to get a PyConfig structure fully

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 18ce7f1d0a3d65f34f25c5964da588743a1bfe3c by Victor Stinner in branch 'master': bpo-1635741: _ast uses PyModule_AddObjectRef() (GH-23146) https://github.com/python/cpython/commit/18ce7f1d0a3d65f34f25c5964da588743a1bfe3c --

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 988f1ec8d2643a0d00851903abcdae90d57ac0e6 by Victor Stinner in branch 'master': bpo-1635741: _contextvars uses PyModule_AddType() (GH-23147) https://github.com/python/cpython/commit/988f1ec8d2643a0d00851903abcdae90d57ac0e6 --

[issue42261] Windows legacy I/O mode mistakenly ignores the device encoding

2020-11-04 Thread Eryk Sun
Eryk Sun added the comment: There's a related issue that affects opening duplicated file descriptors and opening "CON", "CONIN$", and "CONOUT$" in legacy I/O mode, but this case has always been broken. For Windows, _Py_device_encoding needs to be generalized to use _get_osfhandle and

[issue42261] Windows legacy I/O mode mistakenly ignores the device encoding

2020-11-04 Thread Eryk Sun
New submission from Eryk Sun : In Python 3.8+, legacy standard I/O mode uses the process code page from GetACP instead of the correct device encoding from GetConsoleCP and GetConsoleOutputCP. For example: C:\>chcp 850 Active code page: 850 C:\>set PYTHONLEGACYWINDOWSSTDIO=1

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset cfb41e80c1ac5940ec6f2246c9ab4a3d16ef757e by Victor Stinner in branch 'master': bpo-42260: Reorganize PyConfig (GH-23149) https://github.com/python/cpython/commit/cfb41e80c1ac5940ec6f2246c9ab4a3d16ef757e --

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22062 pull_request: https://github.com/python/cpython/pull/23150 ___ Python tracker ___

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22061 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23149 ___ Python tracker ___

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-04 Thread STINNER Victor
New submission from STINNER Victor : This issue is a follow-up of the PEP 567 which introduced the PyConfig C API and is related to PEP 432 which wants to rewrite Modules/getpath.c in Python. I would like to add a new PyInterpreterState_SetConfig() function to be able to reconfigure a Python

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

2020-11-04 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22060 pull_request: https://github.com/python/cpython/pull/23148 ___ Python tracker ___

[issue35455] Solaris: thread_time doesn't work with current implementation

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a12f459ec2a31b96a21c735eb18f3d0fd19e99ff by Jakub KulĂ­k in branch '3.8': [3.8] bpo-35455: Fix thread_time for Solaris OS (GH-8). (GH-23145) https://github.com/python/cpython/commit/a12f459ec2a31b96a21c735eb18f3d0fd19e99ff --

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

2020-11-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22059 pull_request: https://github.com/python/cpython/pull/23147 ___ Python tracker ___

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

2020-11-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22058 pull_request: https://github.com/python/cpython/pull/23146 ___ Python tracker ___

[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2020-11-04 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40522: Get the current Python interpreter state from Thread Local Storage (autoTSSkey). -- versions: +Python 3.10 -Python 3.9 ___ Python tracker

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-15751: "Make the PyGILState API compatible with subinterpreters". -- ___ Python tracker ___

[issue40522] [subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey)

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-15751: "Make the PyGILState API compatible with subinterpreters". -- ___ Python tracker ___

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2020-11-04 Thread Jordan Williams
Jordan Williams added the comment: This issue took me a long time to diagnose when attempting to decompress a bzip2-compressed tarball. This occurs with Python 3.9.0. Since I was using asdf, which uses Pyenv internally, to build and manage my Python version, I failed to notice it was

[issue35455] Solaris: thread_time doesn't work with current implementation

2020-11-04 Thread Jakub Kulik
Change by Jakub Kulik : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35455] Solaris: thread_time doesn't work with current implementation

2020-11-04 Thread Jakub Kulik
Change by Jakub Kulik : -- pull_requests: +22057 pull_request: https://github.com/python/cpython/pull/23145 ___ Python tracker ___

[issue35455] Solaris: thread_time doesn't work with current implementation

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 72bb4c6c1fc5f5209819a2e62d55475ddc888192 by Miss Skeleton (bot) in branch '3.9': bpo-35455: Fix thread_time for Solaris OS (GH-8) (GH-23130) https://github.com/python/cpython/commit/72bb4c6c1fc5f5209819a2e62d55475ddc888192

[issue41944] [security][CVE-2020-27619] Python testsuite calls eval() on content received via HTTP

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: Red Hat advisory: https://access.redhat.com/security/cve/CVE-2020-27619 -- ___ Python tracker ___

[issue41944] [security][CVE-2020-27619] Python testsuite calls eval() on content received via HTTP

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: The CVE-2020-27619 has been assigned to this issue. -- title: [security] Python testsuite calls eval() on content received via HTTP -> [security][CVE-2020-27619] Python testsuite calls eval() on content received via HTTP

[issue42249] Plistlib cannot create binary Plist file larger than 4GiB

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

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: I added a new PyModule_AddObjectRef() function which does not steal a reference to the value on success. I suggest to use this new function instead of PyModule_AddObject() which is usually misused (creating reference leaks). --

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8021875bbcf7385e651def51bc597472a569042c by Victor Stinner in branch 'master': bpo-1635741: Add PyModule_AddObjectRef() function (GH-23122) https://github.com/python/cpython/commit/8021875bbcf7385e651def51bc597472a569042c --

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-04 Thread hai shi
hai shi added the comment: > If you change this, why do it only for tp_doc, but for all the slots? NULL > should *always* mean that the slot is set to NULL instead of inherited. > (Except maybe in cases where this is dangerous; then it should result in an > error? IMO, it's a proper user

[issue42258] argparse: show choices once per argument

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

[issue42259] pprint: infinite recursion for saferepr() when using nested objects, but str() works

2020-11-04 Thread Danylo Hlynskyi
New submission from Danylo Hlynskyi : First, here's an example using str(): ``` class NiceObject: def __str__(self): return str(self.__dict__) def __repr__(self): return str(self) s = NiceObject() s.self = s ``` This outputs: ``` >>> s {'self': {...}} ``` When I

[issue1767511] SocketServer.DatagramRequestHandler with empty response

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: patch review -> needs patch versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6 ___ Python tracker

[issue5038] urrlib2/httplib doesn't reset file position between requests

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- components: +Documentation stage: patch review -> needs patch versions: +Python 3.10, Python 3.9 -Python 2.6 ___ Python tracker ___

[issue4225] unicode_literals doesn't work in exec

2020-11-04 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +22055 pull_request: https://github.com/python/cpython/pull/23143 ___ Python tracker ___

[issue42258] argparse: show choices once per argument

2020-11-04 Thread mendelmaleh
Change by mendelmaleh : -- components: Library (Lib) nosy: mendelmaleh priority: normal severity: normal status: open title: argparse: show choices once per argument type: behavior versions: Python 3.10 ___ Python tracker

[issue4683] tests missing in urllib2

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- components: +Tests resolution: fixed -> title: urllib2.HTTPDigestAuthHandler fails on third hostname? -> tests missing in urllib2 versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6 ___ Python tracker

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: > But locale encoding and console cp are different on Windows. Users may want > to know console cp even when they want to use UTF-8 by default for > reading/writing text files. You're right. My final change leaves Windows unchanged. -- resolution:

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3529718925f40d14ed48d281d809187bc7314a14 by Victor Stinner in branch 'master': bpo-42236: os.device_encoding() respects UTF-8 Mode (GH-23119) https://github.com/python/cpython/commit/3529718925f40d14ed48d281d809187bc7314a14 --

[issue42251] Add threading.gettrace and threading.getprofile

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0001a1b69ecda47b0406daa88c2943877580bcae by Mario Corchero in branch 'master': bpo-42251: Add gettrace and getprofile to threading (GH-23125) https://github.com/python/cpython/commit/0001a1b69ecda47b0406daa88c2943877580bcae --

[issue42251] Add threading.gettrace and threading.getprofile

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

<    1   2