[issue42265] Remove binhex module following PEP-594

2020-11-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: PEP 594 is a draft, it has not been accepted. It is premature to start cancelling perfectly good modules and breaking people's code. https://conroy.org/breaking-python-packages If you have some concrete reason for removing the binhex module, other than

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

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

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

[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

[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

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

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

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

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

[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: Additional note, since I forgot it in the initial message: I'm building Python 3.9.0 from source on Debian v10, specifically the Debian VM on Chromebooks (which I believe is called Crostini). I've made sure to install all the proper dependencies, as far as I know,

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

2020-11-04 Thread Martin Panter
Martin Panter added the comment: Maybe this is related to (or duplicate of) Issue 37788? Python 3.7 has a regression where threads that are never joined cause leaks; previous code was written assuming you didn't need to join threads. Do you still see the leak even if you don't clear the

[issue11346] Generator object should be mentioned in gc module document

2020-11-04 Thread Irit Katriel
Irit Katriel added the comment: This section is very different now: https://docs.python.org/3/library/gc.html#gc.garbage Should this be closed as out of date? -- nosy: +iritkatriel ___ Python tracker

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

2020-11-04 Thread Martin Panter
Change by Martin Panter : -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-11-04 Thread JaonHax
New submission from JaonHax : Exact command run is as follows: sudo ./configure --with-pymalloc --with-assertions --enable-optimizations --enable-loadable-sqlite-extensions --enable-shared --with-address-sanitizer --with-undefined-behavior-sanitizer --with-memory-sanitizer -C (ran with root

[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 python-ideas list is where ideas for enhancements and improvements are discussed. I suggest you bring this up there. https://mail.python.org/mailman3/lists/python-ideas.python.org/ -- ___ Python tracker

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

2020-11-04 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

[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

[issue42267] Python 3.9 broken installer

2020-11-04 Thread Axel Grullón
New submission from Axel Grullón : Initially the Python 3.9 installer worked perfectly, I had every tool at my disposal and every component installed. After I tried installing discord.py an error was shown and it was about certain components that were missing. To my ignorance I uninstalled

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

2020-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 048a35659aa8074afe7d7d054e7cea1f8ee6d366 by Victor Stinner in branch 'master': bpo-42260: Add _PyInterpreterState_SetConfig() (GH-23158) https://github.com/python/cpython/commit/048a35659aa8074afe7d7d054e7cea1f8ee6d366 --

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

2020-11-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: I don't think it's a race condition for two reasons: adding a `time.sleep(1)` after `.start` still raises errors, and in issue37193, there were 10 threads created, with at least 9 of those reaching termination before the test ended, yet it showed 10

[issue42207] Python 3.9 testing fails when building with clang and optimizations are enabled

2020-11-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +22070 pull_request: https://github.com/python/cpython/pull/23155 ___ 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 ___

[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

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: s/the attribute itself is a class/the attribute itself is in the class/ -- ___ 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 ___

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: All 3 of these timeout failures are Ubuntu. They are a $*#(*&(#& nuisance for a required test. Please submit a PR to skip on Ubuntu, if we can detect that, or linux, if not. I have the impression that LabeledScale and Combobox are both composite widgets,

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We could also store the tag of the type object if is a descriptor and compare against that on the cache hit to check that our assumptions are valid. The price here would be an extra pointer on the cache per opcode that may not even be used most of

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

[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: Good catch, Kevin! Would you like to submit a PR for fixing this? -- ___ 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

[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'm going to close this issue because it's not a bug. I understand your question now, as well as the source of your confusion: you thought that traceback is "the thing that is printed to the screen when an exception is raised" and that __traceback__ is

[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 pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

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

[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

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

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

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

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

[issue26300] "unpacked" bytecode

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

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

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

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

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

[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

[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

[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

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

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

[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

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

[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

[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

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

[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

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

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

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

[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

[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

[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

[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

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

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

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

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

[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

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

[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

[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

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

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

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

[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

[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

[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

[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

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

[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

[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

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

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

[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

[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

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

[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

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

  1   2   >