[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

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

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

[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

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

[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: it is more readable -- ___ 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: 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
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 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 --

[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 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 Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +27209 pull_request: https://github.com/python/cpython/pull/28918 ___ Python tracker ___

[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

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

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

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

[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

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

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

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

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

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

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

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

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

[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

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

[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

[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

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

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

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

[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

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

[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

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

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

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

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

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

[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

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

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

[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

[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

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

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

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

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

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

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

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Andre Roberge
Andre Roberge added the comment: +1 on adding better error messages for these cases. I also agree with having different explanations with lambda and def. Below is what I have with friendly-traceback: perhaps the first line of both of these might be suitable? (I will likely change the

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: With PR 28906 it will show: >>> def foo(x,y,(z,w),k): File "", line 1 def foo(x,y,(z,w),k): ^ SyntaxError: Function parameters cannot be parenthesized I am happy to take suggestions for the wording --

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > so just saying "Function parameters cannot be parenthesized" seems very weird. I agree that the wording can be improved, but is not weird, it has the same problem in functions: >>> def foo(x,y,(z,w),k): File "", line 1 def foo(x,y,(z,w),k):

[issue45443] 'ThreadPoolExecutor' object has no attribute 'map'

2021-10-12 Thread Gregory Beauregard
Gregory Beauregard added the comment: I get no attribute error with this code in 3.9 or 3.10. -- nosy: +GBeauregard ___ Python tracker ___

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-12 Thread Guido van Rossum
Guido van Rossum added the comment: Sure. Waiting for your PR. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: It looks like the error is in inspect.formatannotation(). For instances of type, that function incorrectly returns only annotation.__qualname__. Instead, it should return repr(annotation) which would include the args.

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: I reproduced manually the issue. test_makeport() can trigger the "Uncaught thread exception: Exception". test_makeport (test.test_ftplib.TestTLS_FTPClassMixin) ... Warning -- Uncaught thread exception: Exception Exception in thread Thread-67: Traceback

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Josh Rosenberg
Josh Rosenberg added the comment: Why not "lambda parameters cannot be parenthesized" (optionally "lambda function")? def-ed function parameters are parenthesized, so just saying "Function parameters cannot be parenthesized" seems very weird. -- nosy: +josh.r

[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

[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

[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

[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

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

[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

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

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

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

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45450] Improve syntax error for parenthesized arguments

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

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Example: >>> lambda (x,y,z): x+y+z File "", line 1 lambda (x,y,z): x+y+z ^^^ SyntaxError: Function parameters cannot be parenthesized -- ___ Python tracker

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : There is a non-trivial ammount of users that try to parenthesize lambda parameters: >>> lambda (x,y,z): x+y+z File "", line 1 lambda (x,y,z): x+y+z ^ SyntaxError: invalid syntax We should improve the error message in this case

[issue45449] Document that collections.abc types are subscriptable

2021-10-12 Thread Filipe Laíns
Filipe Laíns added the comment: Just to clarify: some type checkers will still allow using them as type hints in Python versions before 3.9, but `from __future__ import annotations` needs to be used so that we don't error out at ruuntime. -- ___

[issue45421] Remove dead code from html.parser

2021-10-12 Thread Mariatta
Mariatta added the comment: New changeset 562c0d7398b9f34ff63a1dc77113dad96a93ce4e by Alberto Mardegan in branch 'main': bpo-45421: Remove dead code from html.parser (GH-28847) https://github.com/python/cpython/commit/562c0d7398b9f34ff63a1dc77113dad96a93ce4e -- nosy: +Mariatta

[issue45449] Document that collections.abc types are subscriptable

2021-10-12 Thread Filipe Laíns
New submission from Filipe Laíns : Since 3.9, the types in collections.abc are subscriptable and can be used as type hints, but this is not documented. We should write something similar to what's on the typing module documentation for the deprecated types. -- assignee: docs@python

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27196 pull_request: https://github.com/python/cpython/pull/28905 ___ Python tracker ___

[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-12 Thread E. Paine
E. Paine added the comment: Felix, are these still the exact errors you're experiencing? Both in my normal Arch install and in a chroot environment I get the following errors instead: == FAIL: test_winfo_rgb

[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: No. The last version did not properly incorporate my suggestion, so I will make a PR that I am willing to merge. -- assignee: docs@python -> terry.reedy ___ Python tracker

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

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: It should be fairly easy to recognize x.pyi as a python file. Just have to find the place. Something like def f(i:int) -> int: ... would have 'def' and 'int' highlighted. -- ___ 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

[issue45411] Add Mimetypes for Subtitle Files

2021-10-12 Thread Éric Araujo
Éric Araujo added the comment: Additions to mimetypes have been backported in the past, with the thought that these are not new behaviour added but only entries in a registry (and bringing the python module in line with external data sources) so there’s value and no risk in releasing these

[issue45447] Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
New submission from Alex Waygood : IDLE currently does not do any syntax highlighting if you use it to open a .pyi stub file, even though everything in a .pyi file is a valid Python expression. It would be great if syntax highlighting for .pyi files could be supported. -- assignee:

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +27195 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28904 ___ Python tracker

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

2021-10-12 Thread Alex Waygood
Change by Alex Waygood : -- title: Support syntax highlighting for .pyi stub files -> IDLE: Support syntax highlighting for .pyi stub files ___ 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

[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

[issue45441] Some links in the document is changed

2021-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: -180909 resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

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

  1   2   >