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

[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

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

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

[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

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

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

[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

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

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

[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

[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

[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

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

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

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

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

[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

[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

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

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

[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

[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

[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

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

[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

[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

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

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

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

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

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

[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

[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

[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

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

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

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

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

[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

[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

[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

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

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

[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

[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

[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

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

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

[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 Simon Cross
Change by Simon Cross : -- nosy: +hodgestar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

[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

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

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

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

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-04 Thread Inada Naoki
Inada Naoki added the comment: Please note that tutorial is a tutorial. It is document to help new user who are learning Python. Do you believe special attributes like __cause__ and __contexts__ are really worth to teach for tutorial readers? Generally speaking, I think we should *reduce*

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Yonatan Goldschmidt
Change by Yonatan Goldschmidt : -- nosy: +Yonatan Goldschmidt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Kevin, Serhiy tried to report this upstream but failed. msg380143. Perhaps you could. One person running my test program reported """ Fedora 32 x86-64 Cinnamon 4.6.7 Linux 5.8.16-200.fc32.x86_64 Python 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1

[issue38413] Remove or change "Multithreading" section

2020-11-04 Thread Vladimir Ryabtsev
Change by Vladimir Ryabtsev : -- pull_requests: +22071 pull_request: https://github.com/python/cpython/pull/23159 ___ Python tracker ___

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-04 Thread Vladimir Ryabtsev
Change by Vladimir Ryabtsev : -- keywords: +patch pull_requests: +22072 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23160 ___ Python tracker

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

[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

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

[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

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

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

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

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

[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

[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

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Given that having attributes that are classes is quite uncommon, I think we can not optimize of the attribute itself is a class instead of checking for descriptors on every hit, hurting the performance gains --

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yury, any preference here? -- nosy: +yselivanov ___ Python tracker ___ ___

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-04 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +22067 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23156 ___ Python tracker ___

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

2020-11-04 Thread Aaron Meurer
Aaron Meurer added the comment: Neither of those things preclude the possibility of the traceback module doing a better job of printing tracebacks for exceptions where __traceback__ = None. -- ___ Python tracker

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2020-11-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: I marked bpo-42263 as a duplicate of this issue. This issue is implicated in preventing the desired fix for bpo-37193, where a thread wishes to remove the handle to itself after performing its duty. By removing its own handle, it can never be joined, and

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2020-11-04 Thread Jason R. Coombs
Change by Jason R. Coombs : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

[issue37351] Drop libpython38.a from Windows release

2020-11-04 Thread Olivier Croquette
Olivier Croquette added the comment: I don't know what version of gendef is meant, but the one from MSYS2 / MinGW64 doesn't output the result on stdout, but rather writes the file "python38.def" itself. So the commands are the following: cd libs gendef ..\python38.dll dlltool --dllname

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +22068 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23157 ___ Python tracker

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

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

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

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: I think this is a bug. There is recursion detection in pprint for dicts, lists and tuples, but it only applies when __repr__ has not been overridden in a subclass. If you remove the __repr__ definition from NiceObject then str(s) works. -- nosy:

[issue42268] ./configure failing when --with-memory-sanitizer specified

2020-11-04 Thread JaonHax
Change by JaonHax : -- components: Build nosy: JaonHax priority: normal severity: normal status: open title: ./configure failing when --with-memory-sanitizer specified type: behavior versions: Python 3.9 ___ Python tracker

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

2020-11-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: Yes, I agree it's a duplicate of issue37788. And yes, it does still leak if the list is never created or if the target is a no-op. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> fix for bpo-36402

[issue42268] ./configure failing when --with-memory-sanitizer specified

2020-11-04 Thread JaonHax
JaonHax added the comment: Yeah, exactly as I thought, ran the exact same command except without --with-memory-sanitizer and the configuration was successful. The successful output has been attached in configure-out-1.txt for cross-comparison, if it's necessary. -- Added file:

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

[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

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-04 Thread E. Paine
E. Paine added the comment: I was wrong trying to blame Azure. I have now seen this happen on an Ubuntu Github Action for PR-22947 (https://github.com/python/cpython/pull/22947/checks?check_run_id=1354118848). test_virtual_event (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... Timeout

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Good catch, Kevin! Would you like to submit a PR for fixing this? -- ___ Python tracker ___

  1   2   >