[issue42587] test_buffer fails on Python built with GCC 11

2020-12-07 Thread STINNER Victor
STINNER Victor added the comment: > FAIL: test_memoryview_cast (test.test_buffer.TestBufferProtocol) It might be related to _Bool. See also bpo-39689. -- ___ Python tracker _

[issue31299] Add "ignore_modules" option to TracebackException.format()

2020-12-07 Thread Irit Katriel
Irit Katriel added the comment: In issue42247 the unit test framework uses limit as a hack to remove its own frame, and then the traceback module applies the limit to the chained exception as well. If the filter suggested here existed, unit test could use that instead of limit. -- n

[issue31299] Add "ignore_modules" option to TracebackException.format()

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

[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2020-12-07 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailm

[issue42422] Py_Decref on value crash the interpreter in Python/ceval.c:1104

2020-12-07 Thread Sofian Brabez
Sofian Brabez added the comment: Any ETA? I would appreciate to see my contribution being merged. Batuhan, the current code is not doing what it's supposed to do in bogus_code_obj.py (i.e. no crash after 3.8 and above in master and branches). This still make the issue valid I guess. ``` $ .

[issue42572] Better path handling with argparse

2020-12-07 Thread Eric V. Smith
Eric V. Smith added the comment: Hi, Austin. If it's something that can be implemented in a library (which this suggestion qualifies as), then we typically want to see it on PyPI and to gain some traction there. I only suggested argparse-types because it also has some argparse add-ons. But

[issue40406] MagicMock __aenter__ should be AsyncMock(return_value=MagicMock())

2020-12-07 Thread Blue
Change by Blue : -- nosy: +simon.d.beal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue39825] EXT_SUFFIX inconsistent between sysconfig and distutils.sysconfig (Windows)

2020-12-07 Thread mattip
mattip added the comment: I moved the new test to a separate test function and added `skipIf` for freebsd and AIX. -- ___ Python tracker ___ _

[issue42574] Travis can't build the 3.8 branch right now

2020-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b6d6f5367da1f2e3f749c358ae8563c56a0cc395 by Pablo Galindo in branch '3.8': bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using older Python versions (GH-23685) https://github.com/python/cpython/commit/b6d

[issue42574] Travis can't build the 3.8 branch right now

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

[issue41889] enum: Mixin and int base class regression in 3.8.6

2020-12-07 Thread Ethan Furman
Ethan Furman added the comment: New changeset 699e5e448919283578afe445069ab93b34bf8eae by Miss Islington (bot) in branch '3.8': bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23672) https://github.com/python/cpython/commit/699e5e448919283578afe445069ab93b34bf8eae -

[issue41889] enum: Mixin and int base class regression in 3.8.6

2020-12-07 Thread Ethan Furman
Ethan Furman added the comment: New changeset be52ca45d9eb9c3e8941e46ddc67a210f0f4c6fa by Miss Islington (bot) in branch '3.9': bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23673) https://github.com/python/cpython/commit/be52ca45d9eb9c3e8941e46ddc67a210f0f4c6fa -

[issue42587] test_buffer fails on Python built with GCC 11

2020-12-07 Thread STINNER Victor
STINNER Victor added the comment: > FAIL: test_memoryview_cast (test.test_buffer.TestBufferProtocol) On AArch64, GCC 11 miscompiles unpack_cmp() of Objects/memoryview.c for the '?' case: /* boolean */ case '?': CMP_SINGLE(p, q, _Bool); return equal; I reported the bug to GCC upstrea

[issue42059] TypedDict(...) as function does not respect "total" when setting __required_keys__ and __optional_keys__

2020-12-07 Thread Guido van Rossum
Guido van Rossum added the comment: Looking for another reviewer. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-12-07 Thread STINNER Victor
STINNER Victor added the comment: Objects/memoryview.c uses memcpy() on _Bool which leads to undefined behavior with GCC 11: see bpo-42587. -- ___ Python tracker ___

[issue41818] Lib/pty.py major revision

2020-12-07 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- pull_requests: +22550 pull_request: https://github.com/python/cpython/pull/23686 ___ Python tracker ___ ___

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

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +22551 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23687 ___ Python tracker

[issue42572] Better path handling with argparse

2020-12-07 Thread Austin Scola
Austin Scola added the comment: Awesome, thank you for the guidance Eric. I'll start a thread on the python-ideas mailing list, gauge the level of support, and go from there. -- ___ Python tracker _

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

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -22551 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 1.0 -> 2.0 pull_requests: +22552 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23687 ___ Python tracker _

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

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +22553 pull_request: https://github.com/python/cpython/pull/23687 ___ Python tracker ___

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

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +22554 pull_request: https://github.com/python/cpython/pull/23688 ___ Python tracker ___

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

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -22553 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -22552 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +22552 pull_request: https://github.com/python/cpython/pull/23687 ___ Python tracker ___

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -22552 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +22555 pull_request: https://github.com/python/cpython/pull/23687 ___ Python tracker ___

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +22556 pull_request: https://github.com/python/cpython/pull/23688 ___ Python tracker ___

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

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -22554 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue42247] unittest hides traceback frames in chained exceptions

2020-12-07 Thread Irit Katriel
Irit Katriel added the comment: I made a patch that replaces the limit hack by a filter on the traceback. We could stop here an just fix this, or we could create a more generic filter in the traceback module as suggested in issue31299. -- ___ Pyth

[issue42564] "from .__init__ import ..." syntax imports a duplicate module

2020-12-07 Thread Gregory Szorc
Gregory Szorc added the comment: Who uses this syntax? https://github.com/search?l=Python&q=%22from+.__init__+import%22&type=Code says a lot of random code, surprisingly/sadly. As for python-ideas, thanks for the suggestion: I may very well craft an email! -- __

[issue42572] Better path handling with argparse

2020-12-07 Thread paul j3
paul j3 added the comment: What exactly do you do with a path argument? Admittedly I'm not expert with os and os.path modules, but isn't a path just a string passed to a function such as cwd(), or joined to another create a filename. I don't know what a 'path' type or action would do.

[issue42560] Improve Tkinter Documentation

2020-12-07 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +22557 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23689 ___ Python tracker _

[issue41889] enum: Mixin and int base class regression in 3.8.6

2020-12-07 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42422] Py_Decref on value crash the interpreter in Python/ceval.c:1104

2020-12-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: Why not just fix bogus_code_obj.py? Something like this (using the replace method) would make it more future-proof to similar changes in the code object constructor signature (and be more readable!): import dis POP_TOP = dis.opmap['POP_TOP'] wordcode = byte

[issue42595] 5 * str

2020-12-07 Thread NO_DANGER LacalBitcoins
New submission from NO_DANGER LacalBitcoins : 5 * 'abc' нет ошибки. Нелогично! -- files: Screenshot_1.png messages: 382709 nosy: denisustinovweb priority: normal severity: normal status: open title: 5 * str type: crash Added file: https://bugs.python.org/file49659/Screenshot_1.png _

[issue42595] 5 * str

2020-12-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, this isn't a bug. It is tested and guaranteed behavior. -- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue42422] Py_Decref on value crash the interpreter in Python/ceval.c:1104

2020-12-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > I would be happy to update and fix it instead if you think it's better that > way. Please let me know, it will be great to see my first submission being > treated. Yes, please. That seems more appropriate -- _

[issue42422] Py_Decref on value crash the interpreter in Python/ceval.c:1104

2020-12-07 Thread STINNER Victor
STINNER Victor added the comment: About PR 23448: I don't see the value of adding a script just prove that CPython has no bytecode verifier. If you consider that it's not well documented, it should be documented in the types.CodeType documentation: https://docs.python.org/dev/library/types.h

[issue42422] types.CodeType() has no bytecode verifier

2020-12-07 Thread STINNER Victor
STINNER Victor added the comment: Compiled bytecode is not portable between Python versions. You may use https://bytecode.readthedocs.io/ which might help to write more portable code, but this project does not contain a bytecode verifier and I'm not sure that it's updated when the Python byt

[issue42422] types.CodeType() has no bytecode verifier

2020-12-07 Thread STINNER Victor
STINNER Victor added the comment: > You may use https://bytecode.readthedocs.io/ which might help to write more > portable code, (...) Ah, I didn't notice that at the beginning of the documentation, you can see that even a very simple loop has a different bytecode before and after Python 3.

<    1   2