[issue45452] Support crash tolerance for gdbm module

2021-10-12 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue45452] Support crash tolerance feature for gdbm module

2021-10-12 Thread Dong-hee Na
Change by Dong-hee Na : -- title: Support crash tolerance for gdbm module -> Support crash tolerance feature for gdbm module ___ Python tracker ___ ___

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: > bpo-45410: Enhance libregrtest -W/--verbose3 option (GH-28908) Oh. Sadly, with this change, faulthandler is no longer able to dump a traceback on a crash :-( -- ___ Python tracker

[issue45454] Unable to explicitly subclass protocol when subclass has mixin requiring init

2021-10-12 Thread Chris Meyer
New submission from Chris Meyer : If I make a explicit subclass of a protocol that also inherits from a mixin and calls super() in order to initialize the mixin, I get the "Protocols cannot be instantiated" exception. This case arises when having a hierarchy of both protocols and concrete cla

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27205 pull_request: https://github.com/python/cpython/pull/28915 ___ Python tracker ___ __

[issue45453] test_embed: random crash on AMD64 Fedora Rawhide Clang 3.x

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: It also crashed on the Address Sanitizer job of GitHub Action: https://github.com/python/cpython/runs/3877327574 0:09:15 load avg: 4.46 [267/413/1] test_embed crashed (Exit code -11) -- running: test_gdb (1 min 2 sec), test_peg_generator (57.4 sec) == Tests

[issue45453] test_embed: random crash on AMD64 Fedora Rawhide Clang 3.x

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, maybe this is no traceback on a crash because of my recent libregrtest changes in bpo-45410. -- ___ Python tracker ___ _

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c63623a0a6892ce8683dbf8c769793ea897e6ba8 by Victor Stinner in branch 'main': bpo-45434: bytearrayobject.h no longer includes (GH-28913) https://github.com/python/cpython/commit/c63623a0a6892ce8683dbf8c769793ea897e6ba8 --

[issue45455] Fill func.__doc__ lazily

2021-10-12 Thread Inada Naoki
New submission from Inada Naoki : Move setting `func.__doc__` from PyFunction_New() to __doc__ descriptor, for faster function creation. This issue is spin-off of bpo-36521. -- components: Interpreter Core messages: 403786 nosy: methane priority: normal severity: normal status: open t

[issue45455] Fill func.__doc__ lazily

2021-10-12 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +27206 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28704 ___ Python tracker ___

[issue45455] Fill func.__doc__ lazily

2021-10-12 Thread Inada Naoki
Inada Naoki added the comment: Pros: Faster (about 3~5%) faster function creation, when function don't have annotations. When function has annotation, function creation is much slower so performance gain become tiny. Cons: Somewhat backward incompatible: ``` >>> def foo(): "foo" ... >>> d

[issue45453] test_embed: random crash on AMD64 Fedora Rawhide Clang 3.x

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: Ah, I reproduced a crash locally: 0:00:19 load avg: 2.00 [3/3/1] test_embed crashed (Exit code -11) Fatal Python error: Segmentation fault Current thread 0x7fef0ea9f2c0 (most recent call first): File "/home/vstinner/python/main/Lib/test/test_embed.py",

[issue45454] Unable to explicitly subclass protocol when subclass has mixin requiring init

2021-10-12 Thread Chris Meyer
Chris Meyer added the comment: This looks like it a regression specific to Python 3.9.7 and has been fixed. https://bugs.python.org/issue45081 https://github.com/python/cpython/pull/28132. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___

[issue45453] test_embed: random crash on AMD64 Fedora Rawhide Clang 3.x

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27207 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28916 ___ Python tracker ___ _

[issue18376] show the effective count of process when running the testsuite

2021-10-12 Thread za
za added the comment: The patch seems outdated. Is the ticket still relevant? -- nosy: +za ___ Python tracker ___ ___ Python-bugs-l

[issue45453] test_embed: random crash on AMD64 Fedora Rawhide Clang 3.x

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 678433f25e0d08dad7edf72be8f0cf9420e4ed2c by Victor Stinner in branch 'main': bpo-45453: Fix test_embed.StdPrinterTests (GH-28916) https://github.com/python/cpython/commit/678433f25e0d08dad7edf72be8f0cf9420e4ed2c -- ___

[issue45453] test_embed: random crash on AMD64 Fedora Rawhide Clang 3.x

2021-10-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +27208 pull_request: https://github.com/python/cpython/pull/28917 ___ Python tracker _

[issue36521] Consider removing docstrings from co_consts in code objects

2021-10-12 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, thanks. We may do one of the other ideas (maybe co_flags & CO_DOCSTRING). -- ___ Python tracker ___ _

[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
New submission from Evgeniy Ivanov : Why operator 'pass' not implement to 'if-else' linear expression? Construction ' if else pass' throws SyntaxError in Python 3.9 -- messages: 403793 nosy: evgnor86 priority: normal severity: normal status: open title: operator 'pass' in 'if-else' li

[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whereas to me, 'not shaded' is easily the worst. Users can customize the sidebar colors, but since the default is the same at the text, I would not want to deliver IDLE with a scheme that I think is awful. On Windows, I agree that the light theme border is

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, "pass" is not an operator, it is not an expression, it is a statement and is only allowed in places where statements are allowed. The if expression requires all three operands to be expressions. Even if "pass" was permitted, what would it

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +27209 pull_request: https://github.com/python/cpython/pull/28918 ___ Python tracker ___ __

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +27210 pull_request: https://github.com/python/cpython/pull/28919 ___ Python tracker ___

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +27211 pull_request: https://github.com/python/cpython/pull/28920 ___ Python tracker ___ __

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 380c44087505d0d560f97e325028f27393551164 by Terry Jan Reedy in branch 'main': bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918) https://github.com/python/cpython/commit/380c44087505d0d560f97e325028f27393551164 --

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
Change by Evgeniy Ivanov : -- resolution: not a bug -> status: closed -> open type: compile error -> ___ Python tracker ___ ___ Py

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
Evgeniy Ivanov added the comment: ok, but what you say for this? x += x*2 if math.pow(x) > 386 else pass and if math.pow(x) > 386: x += x*2 1 line vs 2 line now i'm use this x += x*2 if math.pow(x) > 386 else '' -- ___ Python tracker

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
Evgeniy Ivanov added the comment: it is more readable -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
Evgeniy Ivanov added the comment: or another example: def my_func(x): something_do my_func(x) if x > 100 else -- ___ Python tracker ___ __

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
Evgeniy Ivanov added the comment: this wrong example now i'm use this x += x*2 if math.pow(x) > 386 else '' wanted to say that doing this now my_func(x) if x > 100 else '' -- ___ Python tracker __

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset 47673c47db352916384e4f35fa520e48475e2601 by Miss Islington (bot) in branch '3.10': bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918) https://github.com/python/cpython/commit/47673c47db352916384e4f35fa520e48475e2601 ---

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
Evgeniy Ivanov added the comment: formaly it's not bug, this is future request ok? -- ___ Python tracker ___ ___ Python-bugs-list m

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset cc90732d15b267feb4cb75ec4c448a3c66e6c520 by Miss Islington (bot) in branch '3.9': bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918) https://github.com/python/cpython/commit/cc90732d15b267feb4cb75ec4c448a3c66e6c520

[issue45456] 'pass' in 'if-else' linear expression

2021-10-12 Thread Evgeniy Ivanov
Change by Evgeniy Ivanov : -- title: operator 'pass' in 'if-else' linear expression -> 'pass' in 'if-else' linear expression ___ Python tracker ___ ___

[issue45456] 'pass' in 'if-else' linear expression

2021-10-12 Thread wyz23x2
wyz23x2 added the comment: Well, x = 1 if False else pass and if False: x = 1 1 line vs 1 line :) It's just not needed. -- nosy: +wyz23x2 ___ Python tracker ___ _

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue45456] operator 'pass' in 'if-else' linear expression

2021-10-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: If you want pass to become an expression, what should these do? x = pass print(pass) mydict[pass] = 1 type(pass) There is nothing special about the ternary if operator. It is just an operator like plus, minus and more. The only difference

[issue45455] Fill func.__doc__ lazily

2021-10-12 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

<    1   2