[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: I should also check again the stack consumption. Old issues: * bpo-29465: Modify _PyObject_FastCall() to reduce stack consumption * bpo-29234: Disable inlining of _PyStack_AsTuple() to reduce the stack consumption * bpo-29227: Reduce C stack consumption in

[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread primexx
New submission from primexx : Python 3.10 bundled IDLE with a small change in the interactive interpreter shell. Previously, the line indicators ">>>" were in-line with the command line, and a long/multi line command would have the same indentation as the indicator which was not ideal.

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

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Ben
Ben added the comment: The problem with the FAQs is that it's over-simplifying things to the point where it can sometimes mislead. Notably, it says the GIL protects these operations; but as Antoine points out, many operations on datatypes drop back into Python (including potential decrefs)

[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: New changeset dbe213de7ef28712bbfdb9d94a33abb9c33ef0c2 by Victor Stinner in branch 'main': bpo-45410: Enhance libregrtest -W/--verbose3 option (GH-28908) https://github.com/python/cpython/commit/dbe213de7ef28712bbfdb9d94a33abb9c33ef0c2 --

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

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

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread Ned Deily
Ned Deily added the comment: New changeset 9c4766772cda67648184f8ddba546a5fc0167f91 by David Bohman in branch 'main': bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (#28845)

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27200 pull_request: https://github.com/python/cpython/pull/28910 ___ Python tracker

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

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

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

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

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

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

[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

[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 Evgeniy Ivanov
Change by Evgeniy Ivanov : -- resolution: not a bug -> status: closed -> open type: compile error -> ___ 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

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

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset edae3e2ac73151217b4b4e096dd9f17cc0a50c11 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (GH-28845) (GH-28911)

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: 5 years ago, I added _PyObject_CallArg1() (similar to PyObject_CallOneArg()) and then I removed it since it consumed more stack memory than existing function, whereas I added _PyObject_CallArg1() to reduce the stack consumption. commit

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for doing the research. I have been thinking about adding a file containing idlelib 'leaf' objects, those with no idlelib dependencies, which are needed in more than one file. would be to reduce the complexity of the idlelib dependency graph,

[issue36521] Consider removing docstrings from co_consts in code objects

2021-10-12 Thread Inada Naoki
Inada Naoki added the comment: Although I still feel reducing 16% tuples is attractive, no one support the idea. I leave this as-is for now, and will go to lazy-loading docstring (maybe, co_linetable too) later. -- resolution: -> rejected stage: patch review -> resolved status:

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

[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: +27199 pull_request: https://github.com/python/cpython/pull/28908 ___ Python tracker ___

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread Ned Deily
Ned Deily added the comment: Merged for release in 3.10.1 and 3.9.8. Thanks for the issue and PR, David! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45452] Support crash tolerance for gdbm module

2021-10-12 Thread Dong-hee Na
Dong-hee Na added the comment: I am going to work on this issue :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45452] Support crash tolerance for gdbm module

2021-10-12 Thread Dong-hee Na
New submission from Dong-hee Na : >From gdbm 1.21, gdbm supports the crash tolerance feature. We may need to provide APIs for those versions. https://www.gnu.org.ua/software/gdbm/manual/Crash-Tolerance.html Following features will be provided if the user using gdbm >= 1.21 - Need to provide

[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

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

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

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset 9901d153c201d852d27dc9d3074e283c26468f6d by Miss Islington (bot) in branch '3.9': [3.9] bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (GH-28845) (GH-28910)

[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
Change by STINNER Victor : -- keywords: +patch pull_requests: +27207 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28916 ___ 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:

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

[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

[issue45421] Remove dead code from html.parser

2021-10-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 ___ 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 489176e4285314f9ea87b8bd91fe1d55d9af2c42 by Victor Stinner in branch 'main': bpo-45434: Convert Py_GETENV() macro to a function (GH-28912) https://github.com/python/cpython/commit/489176e4285314f9ea87b8bd91fe1d55d9af2c42 --

[issue45452] Support crash tolerance feature for gdbm module

2021-10-12 Thread Dong-hee Na
Dong-hee Na added the comment: FYI, I got a mail about this feature from Terence Kelly who design these amazing things :) -- ___ Python tracker ___

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

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

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

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27202 pull_request: https://github.com/python/cpython/pull/28912 ___ 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

[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

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

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

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

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

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

2021-10-12 Thread STINNER Victor
New submission from STINNER Victor : test_embed does crash randomly on AMD64 Fedora Rawhide Clang 3.x: * https://buildbot.python.org/all/#/builders/188/builds/880 * https://buildbot.python.org/all/#/builders/188/builds/879 So far, I failed to reproduce the issue. -- components: Tests

[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

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

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

[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

[issue45448] PIP package installation failure for multiple packages

2021-10-12 Thread Eric V. Smith
Eric V. Smith added the comment: You should report these problems to the numpy and tensorflow projects. I'm assuming they don't support 3.10 yet. -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -> closed ___

[issue45417] Enum creation non-linear in the number of values

2021-10-12 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: I fixed the reliance of set being insertion ordered in pypy and opened a pull request. -- ___ Python tracker ___

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Jeff Allen
Jeff Allen added the comment: Thomas wrote: > it's as part of this discussion in > https://mail.python.org/archives/list/python-...@python.org/thread/ABR2L6BENNA6UPSPKV474HCS4LWT26GY/#IAOCDDCJ653NBED3G2J2YBWD7HHPFHT6 > and others in #python-dev That's where I noticed it, but it seemed the

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
Alex Waygood added the comment: It looks like support for .py files is hardcoded into IDLE's source code in the following places: * browser.ModuleBrowserTreeItem.OnDoubleClick * browser.ModuleBrowserTreeItem.IsExpandable * browser.ModuleBrowserTreeItem.listchildren * editor.ispythonsource

[issue42345] Equality of typing.Literal depends on the order of arguments

2021-10-12 Thread Alick Zhao
Alick Zhao added the comment: Mainly to clarify, this is fixed in Python 3.9 and above, but won't be fixed in Python 3.8, right? ``` ~$ python3.8 Python 3.8.11 (default, Jul 24 2021, 13:24:12) [Clang 12.0.5 (clang-1205.0.22.11)] on darwin Type "help", "copyright", "credits" or "license" for

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Eric V. Smith
New submission from Eric V. Smith : Please explain what "hiding" does. -- nosy: +eric.smith ___ Python tracker ___ ___

[issue45417] Enum creation non-linear in the number of values

2021-10-12 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- nosy: +Carl.Friedrich.Bolz nosy_count: 6.0 -> 7.0 pull_requests: +27198 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28907 ___ Python tracker

[issue38659] enum classes cause slow startup time

2021-10-12 Thread Ethan Furman
Ethan Furman added the comment: The reason for that quadratic behavior is that for each new member (aka attribute), all the previous members must be checked to see if the new member is a duplicate. In practice I wouldn't expect this to be a problem as most enums should be fairly small --

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Nium
Nium added the comment: The objective of this feature is to add a way to omit fields of a dataclass when `asdict` or `astuple` is used. The main propuse is to add the `hide` parameter in `field` and add it as an attribute in the `Field` class. ```py @dataclass class User: name: str

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50351/bench2.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50350/test_bench2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset d943d19172aa93ce88bade15b9f23a0ce3bc72ff by Victor Stinner in branch 'main': bpo-45439: Move _PyObject_CallNoArgs() to pycore_call.h (GH-28895) https://github.com/python/cpython/commit/d943d19172aa93ce88bade15b9f23a0ce3bc72ff --

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Jeff Allen
Jeff Allen added the comment: I'm interested in Thomas' reasons, but here are some of mine (as far as I understand things): 1. It is specific to one interpreter implemented in C, equipped with a GIL, and on certain assumptions about the byte code interpreter and the implementation of

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm also surprised to learn that `L.sort()` and `D1.update(D2)` are supposed to be atomic. They certainly are not in the general case. Remember, any Python code can release the GIL (because the GIL is released periodically in the interpreter loop). Any

[issue45441] Some links in the document is changed

2021-10-12 Thread jiahua wang
Change by jiahua wang : -- assignee: docs@python components: Documentation nosy: 180909, docs@python priority: normal pull_requests: 27191 severity: normal status: open title: Some links in the document is changed versions: Python 3.11 ___ Python

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50348/bench_no_args_inline.py ___ Python tracker ___ ___

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50347/bench_no_args.patch ___ Python tracker ___ ___ Python-bugs-list

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50346/bench.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50345/test_bench.patch ___ Python tracker ___ ___ Python-bugs-list

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Thomas Grainger
Thomas Grainger added the comment: it's as part of this discussion in https://mail.python.org/archives/list/python-...@python.org/thread/ABR2L6BENNA6UPSPKV474HCS4LWT26GY/#IAOCDDCJ653NBED3G2J2YBWD7HHPFHT6 and others in #python-dev specifically

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50349/bench_no_args_public.py ___ Python tracker ___ ___

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-12 Thread Randolf Scholz
Randolf Scholz added the comment: @Alex Regarding my proposal, the crucial part is the desiderata, not the hacked up implementation I presented. And I really believe that at least that part I got hopefully right. After all, what does `@classmethod` functionally do? It makes the first

[issue42253] xml.dom.minidom.rst missing standalone documentation

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3d7009e88e0ae516b10d8d3d402cc66e86fb631e by Miss Islington (bot) in branch '3.10': bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28874) https://github.com/python/cpython/commit/3d7009e88e0ae516b10d8d3d402cc66e86fb631e --

[issue42253] xml.dom.minidom.rst missing standalone documentation

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 23528905d48ddfe74a75af2152e96c04b77bf314 by Miss Islington (bot) in branch '3.9': bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28875) https://github.com/python/cpython/commit/23528905d48ddfe74a75af2152e96c04b77bf314 --

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset faa87f7f3b60f79b9018aaef0efa5e00d82b817b by Miss Islington (bot) in branch '3.9': bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28873) https://github.com/python/cpython/commit/faa87f7f3b60f79b9018aaef0efa5e00d82b817b

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 47a50fe16f9f074d3e6aa85e76502955ed40 by Miss Islington (bot) in branch '3.10': bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872) https://github.com/python/cpython/commit/47a50fe16f9f074d3e6aa85e76502955ed40

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fixes Vinay and Serhiy! -- stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue23262] webbrowser module broken with Firefox 36+

2021-10-12 Thread wyz23x2
wyz23x2 added the comment: I think this six year old issue can be closed. All patches for 3.x are committed, and Python 2.7 is EOL. -- nosy: +wyz23x2 ___ Python tracker ___

[issue45340] Lazily create dictionaries for plain Python objects

2021-10-12 Thread Mark Shannon
Mark Shannon added the comment: Josh, I'm not really following the details of what you are saying. You claim "Key-sharing dictionaries were accepted largely without question because they didn't harm code that broke them". Is that true? I don't remember it that way. They were accepted

[issue45315] `PyType_FromSpec` does not copy the name

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: > Hm, I haven't find any case who use dynamical tp_name of Type_Spec > temporarily. The use case is creating types entirely on demand, with dynamically created specs. This is useful e.g. for wrapping objects of a different object system, like C++ classes

[issue45441] Some links in the document is changed

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset 38e3ada75a7b5d911d81e8e4b70a99e181093866 by Miss Islington (bot) in branch '3.9': bpo-45441: Update some moved URLs in documentation (GH-28861) https://github.com/python/cpython/commit/38e3ada75a7b5d911d81e8e4b70a99e181093866 --

[issue45441] Some links in the document is changed

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset 32866dd471709dd7f3bd63ce762dec72198483d2 by Miss Islington (bot) in branch '3.10': bpo-45441: Update some moved URLs in documentation (GH-28861) https://github.com/python/cpython/commit/32866dd471709dd7f3bd63ce762dec72198483d2 --

[issue45442] Update `Virtual Environment` tutorial

2021-10-12 Thread Shivnaren Srinivasan
New submission from Shivnaren Srinivasan : Priority: Low The Virtual Environment tutorial page (https://docs.python.org/3/tutorial/venv.html) doesn't specify how we can revert, or deactivate the `venv`. This is quite a popular question on SO:

[issue45445] Fail if an invalid -X option is provided

2021-10-12 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : We found that using -X can be very confusing and annoying when you make typos, so I think having errors if you pass some unknown stuff will be outweighing any downside of making this more strict. -- messages: 403733 nosy: pablogsal

[issue45445] Fail if an invalid -X option is provided

2021-10-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27194 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28823 ___ Python tracker

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Nium
Change by Nium : -- nosy: formigacomcaimbra priority: normal severity: normal status: open title: Add a way to hide fields in dataclasses type: enhancement versions: Python 3.11 ___ Python tracker

[issue45448] PIP package installation failure for multiple packages

2021-10-12 Thread Zayden Micheal James
New submission from Zayden Micheal James : When I try to install numpy using python version 3.10, pip version 21.2.4 it gives me a PEP517 error, with a bunch of other exceptions. When I try to install tensorflow using python version 3.10, pip version 21.2.4 it gives me an error saying that

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: The new issue is bpo-45383. There's a sprint newt week; I'll probably get to it then. > But, I am trying to understand the preference for static better. There is > probably something to learn or even important I am missing. The original motivating use

[issue23262] webbrowser module broken with Firefox 36+

2021-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

  1   2   >