[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 ___ ___

[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 -- n

[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 -- ___

[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:

[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

[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

[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 ___ ___

[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 ___ _

[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

[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 replac

[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 _

[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 ca

[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 -- _

[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). -- _

[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 ___

[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

[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 -

[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 Jakub Kulik
Change by Jakub Kulik : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[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 missing

[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 ___

[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 __

[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: ht

[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 ___

[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 ___

[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 Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22060 pull_request: https://github.com/python/cpython/pull/23148 ___ 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

[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
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
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 --

[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 C

[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 GetNumb

[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 -- _

[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 --

[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
Change by STINNER Victor : -- pull_requests: +22063 pull_request: https://github.com/python/cpython/pull/23151 ___ Python tracker ___

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

2020-11-04 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue25573] FrameSummary repr() does not support previously working uses of repr in traceback module

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: I think the fourth element (the code line) was omitted from repr because it is not one of the constructor args for FrameSummary (it is derived from them), so it's redundant in terms of describing this instance. -- nosy: +iritkatriel versions: +Python 3

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

2020-11-04 Thread Eryk Sun
Eryk Sun added the comment: > The solution here is to fix config_init_stdio_encoding() to use > GetConsoleCP() and GetConsoleOutputCP() to build a "cpXXX" string. But, as I mentioned, that's only possible by replacing config->stdio_encoding with three separate settings: config->stdin_encodin

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: Setting __traceback__ to None is not going to make the exception disappear. Note that TracebackException does not represent a traceback, it represent an exception (for rendering in tracebacks). So all information of the exception is rendered by TracebackExcep

[issue42262] [C API] Add Py_NewRef() function to get a new strong reference to an object

2020-11-04 Thread STINNER Victor
New submission from STINNER Victor : In C, the following pattern (A) is very common: Py_INCREF(sysdict); interp->sysdict = sysdict; * (1) Increment the reference counter * (2) Store a reference to the object somewhere Similar pattern (B) using return: Py_INCREF(temp); return

[issue14655] traceback module docs should show how to print/fomat an exception object

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: As of 3.5 there is this option: traceback.TracebackException.from_exception(exc).format() Perhaps that can be mentioned in the doc for traceback.format_exception(). -- assignee: -> docs@python components: +Documentation nosy: +docs@python, iritkatrie

[issue42262] [C API] Add Py_NewRef() function to get a new strong reference to an object

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

[issue42262] [C API] Add Py_NewRef() function to get a new strong reference to an object

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: > The problem in these patterns is that the object has to be written twice. I'm talking about the variable name which has to be repeated (written twice) in the source code. -- ___ Python tracker

[issue42262] [C API] Add Py_NewRef() function to get a new strong reference to an object

2020-11-04 Thread Simon Cross
Change by Simon Cross : -- nosy: +hodgestar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 58ca33b4674f39189b03c9a39fa7b676b43b3d08 by Victor Stinner in branch 'master': bpo-1635741: Fix ref leak in _PyWarnings_Init() error path (GH-23151) https://github.com/python/cpython/commit/58ca33b4674f39189b03c9a39fa7b676b43b3d08 --

[issue12535] Chained tracebacks are confusing because the first traceback is minimal

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset af1d64d9f7a7cf673279725fdbaf4adcca51d41f by Victor Stinner in branch 'master': bpo-42260: Main init modify sys.flags in-place (GH-23150) https://github.com/python/cpython/commit/af1d64d9f7a7cf673279725fdbaf4adcca51d41f --

[issue16855] traceback module leaves off module name in last line of formatted tracebacks

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: This is a python 2 only issue. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

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

2020-11-04 Thread Eryk Sun
Eryk Sun added the comment: > It would be nice to get an unit test for this case. The process code page from GetACP() is either an ANSI code page or CP_UTF8 (65001). It should never be a Western OEM code page such as 850. In that case, a reliable unit test would check that the configured enc

[issue19206] Support disabling file I/O when doing traceback formatting

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: Links about the "AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64')" error: * PEP 641 -- Using an underscore in the version portion of Python 3.10 compatibility tags https://www.python.org/dev/peps/pep-0641/ * PEP 641

[issue42252] Embeddable Python indicates that it uses PYTHONPATH

2020-11-04 Thread Steve Dower
Steve Dower added the comment: > I'd been expecting this was commonly used as the way to give access to > python3X.dll. Yeah, both. The idea is to delete the files you don't want - so if you don't need python.exe, just don't include it. Same goes for some of the native modules (e.g. deletin

[issue1346874] httplib simply ignores CONTINUE

2020-11-04 Thread Mattias Amnefelt
Change by Mattias Amnefelt : -- nosy: +Mattias Amnefelt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7184218e186811e75be663be78e57d5302bf8af6 by Mohamed Koubaa in branch 'master': bpo-1635741: Fix PyInit_pyexpat() error handling (GH-22489) https://github.com/python/cpython/commit/7184218e186811e75be663be78e57d5302bf8af6 -- __

[issue1514420] Traceback display code can attempt to open a file named ""

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: I was able to reproduce it on 3.8, but I'm confused about where the open is happening because linecache.updatecache tries to avoid this: if not filename or (filename.startswith('<') and filename.endswith('>')): return [] -- nosy: +iritkatriel v

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

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- title: traceback set with BaseException.with_traceback() overwritten on raise -> [doc] traceback set with BaseException.with_traceback() pushed back on raise versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.4, Python 3.5

[issue42262] [C API] Add Py_NewRef() function to get a new strong reference to an object

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

[issue11007] stack tracebacks should give the relevant class name

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

2020-11-04 Thread Jakub Stasiak
Jakub Stasiak added the comment: I thought I'd give it a shot and I believe i found the issue. Let's use the testCount test as an example. The client side (or the data sending side) looks like this: def _testCount(self): address = self.serv.getsockname() file = open(os_he

[issue34463] Discrepancy between traceback.print_exception and sys.__excepthook__

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.10: Running Release|Win32 interpreter... Python 3.10.0a1+ (heads/exceptionGroup-stage1-dirty:928c211ad8, Oct 28 2020, 14:36:37) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> raise

[issue14379] Several traceback docs improvements

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: Closing this issue is out of date. Most if not all of the points mentioned have been resolved by now, and there is also a section on traceback objects [1] which is linked from the exc_info doc [2]. [1] https://docs.python.org/3/reference/datamodel.html#traceba

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 789359f47c2a744caa9a405131706099fd7ad6bd by Erlend Egeberg Aasland in branch 'master': bpo-1635741: _sqlite3 uses PyModule_AddObjectRef() (GH-23148) https://github.com/python/cpython/commit/789359f47c2a744caa9a405131706099fd7ad6bd --

[issue38197] Meaning of tracebacklimit differs between sys.tracebacklimit and traceback module

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: If you change your script to do sys.tracebacklimit = abs(limit) and run it with arg -3, then you get the output you expect: C:\Users\User\src\cpython>python.bat x.py -3 Running Release|Win32 interpreter... limit -3 from traceback module: Traceback (most recent ca

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

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

[issue42263] Removing thread reference in thread results in leaked reference

2020-11-04 Thread Jason R. Coombs
New submission from Jason R. Coombs : In issue37193, I'd worked on an implementation in which a thread reference would be removed as the thread was closing, but this led to a memory leak caught by the buildbots (https://bugs.python.org/issue37193#msg380172). As I tracked down the issue in GH-

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-11-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: I filed issue42263 to capture the underlying cause of the memory leak that led to the buildbot failures and the rollback. -- ___ Python tracker ___

[issue38197] Meaning of tracebacklimit differs between sys.tracebacklimit and traceback module

2020-11-04 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: It's still inconsistent between the two ways to get a traceback, and the inconsistency is not documented. -- ___ Python tracker ___

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

2020-11-04 Thread Sebastian Wiedenroth
Sebastian Wiedenroth added the comment: Excellent analysis, that's it! I've also tested your patch on SmartOS and it works great. -- ___ Python tracker ___ __

[issue42131] [zipimport] Update zipimport to use specs

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- superseder: -> zipimport is not PEP 3147 or PEP 488 compliant ___ Python tracker ___ ___ Python-bugs-li

[issue42131] [zipimport] Update zipimport to use specs

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue42263] Removing thread reference in thread results in leaked reference

2020-11-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Could this be a race condition? The thread that's created in the test is not waited on (join), it may or may not have exited by the time the test function returns. -- nosy: +ronaldoussoren ___ Python tracker

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

2020-11-04 Thread Jakub Kulik
Jakub Kulik added the comment: I did some further digging, and this is indeed not possible on Oracle Solaris (that is, sendfile() cannot write bytes and fail during the same call). We considered this a bug and changed/fixed it several years ago. Manual page doesn't mention that either: https

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Aaron Meurer
Aaron Meurer added the comment: > It's not entirely clear to me what you are trying to do (what is the output > you are hoping to get?) but this looks more like a question than a bug > report, so I am closing this issue. If this is still relevant, I'd suggest > you ask on the python users li

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: I had no intention to insult you and apologize if I did. I assumed that you forgot about this issue since you didn't chase it for 3 years, but you are right that I should have asked. I am reopening it so that you can explain the question. Since you didn't get

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Aaron Meurer
Aaron Meurer added the comment: I think I found another way to achieve what I was trying to do, which is why I never pursued this. But I still think it's a bug. __traceback__ = None isn't documented anywhere that I could find, so I was only able to deduce how it should work from reading the

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

2020-11-04 Thread Jakub Stasiak
Change by Jakub Stasiak : -- pull_requests: +22066 pull_request: https://github.com/python/cpython/pull/23154 ___ Python tracker ___ ___

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

2020-11-04 Thread Jakub Stasiak
Jakub Stasiak added the comment: Thank you! I submitted a PR with a slightly modified patch (the comparison only happens on Solaris family of systems), I'd appreciate your confirmation that it still works (it's working for me on openindiana). -- _

[issue42264] Deprecate or remove sqlite3.OptimizedUnicode

2020-11-04 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Ref. discussion on GH-23148: https://github.com/python/cpython/pull/23148#discussion_r517536083 OptimizedUnicode was obsoleted and undocumented in Python 3.3 (see commit 86dc732f1f). Suggesting to either deprecate OptimizedUnicode in 3.10 and remo

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: The traceback is only one part of an exception. It is simply a list of frames that show where the exception travelled between being raised and being caught. An exception contains information about an error, including the type of the exception, sometimes some p

[issue42265] Remove binhex module following PEP-594

2020-11-04 Thread Anatoliy Platonov
New submission from Anatoliy Platonov : https://www.python.org/dev/peps/pep-0594/#id163 -- components: Library (Lib), Tests messages: 380365 nosy: p4m-dev priority: normal severity: normal status: open title: Remove binhex module following PEP-594 versions: Python 3.10

[issue26216] run runtktests.py error when test tkinter

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26205] Better specify number of nested scopes

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26031] Add stat caching option to pathlib

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26300] "unpacked" bytecode

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26285] Garbage collection of unused input sections from CPython binaries

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26584] pyclbr module needs to be more flexible on loader support

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26394] Have argparse provide ability to require a fallback value be present

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Aaron Meurer
Aaron Meurer added the comment: I don't think it's helpful to make such a literalistic interpretation. Just because the variable is called "traceback" doesn't mean it should apply only to the things that are *technically* a traceback (and I don't agree anyway that the line containing the exc

[issue26031] Add stat caching option to pathlib

2020-11-04 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, I am giving up on this. -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker ___ _

[issue42265] Remove binhex module following PEP-594

2020-11-04 Thread Eric V. Smith
Eric V. Smith added the comment: PEP 594 hasn't been accepted yet. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: __traceback__ doesn't disable printing tracebacks. It *is* the traceback. By setting it to None you erased the exception's traceback. -- ___ Python tracker

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Kevin Modzelewski
New submission from Kevin Modzelewski : The problem is that the descriptor-ness of a type-level attribute is only checked at opcache-set time, not at opcache-hit time. $ python3.8 test.py 2 $ ./python --version Python 3.10.0a2+ $ git rev-parse --short HEAD 789359f47c $ ./python test.py 1 ---

  1   2   >