[issue44655] Confusing error with __slots__

2021-07-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +25733 pull_request: https://github.com/python/cpython/pull/27198 ___ Python tracker _

[issue44655] Confusing message with AttributreError suggestions

2021-07-16 Thread Eric V. Smith
Eric V. Smith added the comment: Got it. Thanks for jumping on this quickly. -- title: Confusing error with __slots__ -> Confusing message with AttributreError suggestions ___ Python tracker ___

[issue44655] Confusing message with AttributreError when attribute name matches suggestion

2021-07-16 Thread Eric V. Smith
Change by Eric V. Smith : -- title: Confusing message with AttributreError suggestions -> Confusing message with AttributreError when attribute name matches suggestion ___ Python tracker

[issue44655] Confusing message with AttributreError when attribute name matches suggestion

2021-07-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a0b1d401db52391d13479c53ee3880e6640df98c by Miss Islington (bot) in branch '3.10': bpo-44655: Don't include suggestions for attributes that are the same as the missing one (GH-27197) (GH-27198) https://github.com/python/cpython/commit/a0

[issue44655] Confusing message with AttributeError when attribute name matches suggestion

2021-07-16 Thread Eric V. Smith
Change by Eric V. Smith : -- title: Confusing message with AttributreError when attribute name matches suggestion -> Confusing message with AttributeError when attribute name matches suggestion ___ Python tracker

[issue44655] Confusing message with AttributeError when attribute name matches suggestion

2021-07-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25734 pull_request: https://github.com/python/cpython/pull/27199 ___ Python tracker ___ ___

[issue35673] Loader for namespace packages

2021-07-16 Thread Isaac
Isaac added the comment: Not sure if it's proper etiquette to bump issues on the tracker, but is there any interest in this issue for 3.11? -- nosy: +fwahhab ___ Python tracker _

[issue43950] Include column offsets for bytecode instructions

2021-07-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We can probably leverage the unicodedata_UCD_east_asian_width_impl function in the unicodedata extension module to get the width of every character as emojis normally take 2 characters in the terminal. We could expose the necessary functions from ther

[issue35673] Loader for namespace packages

2021-07-16 Thread Eric V. Smith
Eric V. Smith added the comment: I think a PR with tests would be a good first step. -- ___ Python tracker ___ ___ Python-bugs-list

[issue44655] Confusing message with AttributeError when attribute name matches suggestion

2021-07-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f783428a2313a729ca8b539c5a86ff114b9ff375 by Pablo Galindo Salgado in branch 'main': bpo-44655: Include the name of the type in unset __slots__ attribute errors (GH-27199) https://github.com/python/cpython/commit/f783428a2313a729ca8b539c5

[issue44655] Confusing message with AttributeError when attribute name matches suggestion

2021-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +25735 pull_request: https://github.com/python/cpython/pull/27201 ___ Python tracker ___ __

[issue44655] Confusing message with AttributeError when attribute name matches suggestion

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

[issue44655] Confusing message with AttributeError when attribute name matches suggestion

2021-07-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset efda9054b9fc91e69ecb34eae84fdd2ca8e6feef by Miss Islington (bot) in branch '3.10': bpo-44655: Include the name of the type in unset __slots__ attribute errors (GH-27199) (GH-27201) https://github.com/python/cpython/commit/efda9054b9fc91e

[issue39221] Cross compiled python installed wrong version of lib2to3/Grammar pickle

2021-07-16 Thread Andrew Aladjev
Andrew Aladjev added the comment: Hello. I've received more problems with pickle generation, reviewed source code, invented better bike for solving it. So I can provide full description of this issue and reduce other developers time on debugging. Problem: 1. Martin v. Löwis introduced pickl

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-07-16 Thread Eric V. Smith
Eric V. Smith added the comment: With Pablo's changes, the error now reads (in 3.11): obj.b ^ AttributeError: 'Example' object has no attribute 'b' Which is a vast improvement! I'm working on a PR to initialize obj.b in __init__. -- _

[issue29753] [Linux] ctypes packs bitfields Incorrectly

2021-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Charles and Sam: In the future, when responding by email, please delete the email you are responding to, except maybe for a line. When your response is posted to web page, the quote is redundant and distracting. -- nosy: +terry.reedy versions: -Pyt

[issue40529] Auto Completions with case insensitive

2021-07-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: It seems like this would be a very good feature to have for accesibility, because persons with low level disabilities (e.g. carpal syndrom) will generally have a harder time keeping shift down while pressing a few upper case letters, and they would often hav

[issue44592] tkinter focus_get() with non-tkinter Tk widget

2021-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Traceback (most recent call last): File "C:\Programs\Python310\lib\tkinter\__init__.py", line 1921, in __call__ return self.func(*args) File "C:\Programs\Python310\lib\tkinter\__init__.py", line 839, in callit func(*args) File "C:\Programs\Python3

[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

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

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: The more I think about this, the less I like it. AFAIK static checkers like mypy don’t strip leading white space from forward references either. (If I’m wrong, please show evidence.) -- ___ Python tracker

[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +25736 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27202 ___ Python tracker ___

[issue44658] No ValueError for duplicate key value in mapping patern when lengths do not match

2021-07-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue44589 -- nosy: +brandtbucher, xtreak ___ Python tracker ___ _

[issue44524] __name__ attribute in typing module

2021-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry for the slow progress. I don’t think it is important for Any orUnion to have these attributes, but the ones that match ABCs or concrete classes (e.g. MutableSet, Counter) should probably have __name__, __qualname__, and __module__, since the originals

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: This has been proposed and rejected before. So I think a pydev discussion and steering council decision would be needed to change. The current rule in interactive mode is that typing an expression statement echoes the representation of the resulting object.

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589 by Yurii Karabas in branch 'main': bpo-44490: Improve typing module compatibility with types.Union (GH-27048) https://github.com/python/cpython/commit/bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589

[issue44610] Format issue with strftime and %Y

2021-07-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is something left here? -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list ma

[issue44659] Remove Ivan from list of,typing experts

2021-07-16 Thread Guido van Rossum
New submission from Guido van Rossum : There is a list somewhere in bpo or GH that automatically adds Ivan to all bugs or reviews involving typing. He is no longer active. Can we remove him from those lists? And maybe add Ken Jin, who has built up a lot of expertise in this area. --

[issue44651] An unclear definition in Doc/glossary.rst

2021-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK with me. -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-16 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ __

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 889036f7ef7290ef15b6c3373023f6a35387af0c by Germán Méndez Bravo in branch 'main': bpo-41249: Fix postponed annotations for TypedDict (GH-27017) https://github.com/python/cpython/commit/889036f7ef7290ef15b6c3373023f6a35387af0c --

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-16 Thread Vedran Čačić
Vedran Čačić added the comment: > In the other hand, special-casing 'quit\n' and 'exit\n' could be seen as > analogous to special-casing '^Z\n' Terry, there is a big difference between special-casing 'exit\n' and special-casing '^Z\n': 'exit' is a perfectly valid identifier (and people use i

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: How far can/should we backport this? -- versions: +Python 3.11 ___ Python tracker ___ ___ Pytho

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-16 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25737 pull_request: https://github.com/python/cpython/pull/27203 ___ Python tracker ___ ___ P

[issue44660] email.feedparser Module Lacks Support for Section 3.5 of RFC 6532: message/global Emails with non-identity Content-Transfer-Encodings

2021-07-16 Thread Francis Johnson
New submission from Francis Johnson : Note that I have created a fix for this and am working through the Python Developer’s Guide to propose it. -- components: email messages: 397693 nosy: barry, f18a14c09s, r.david.murray priority: normal severity: normal status: open title: email.feed

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-16 Thread Ken Jin
Ken Jin added the comment: > How far can/should we backport this? It will work in 3.10 and 3.9 without issues. However, I don't remember if bugfixes for __future__ features require special treatment/are excluded from normal bugfix backports. I vaguely remember us not backporting from __futur

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-16 Thread Guido van Rossum
Guido van Rossum added the comment: Let’s both, since this feels like a real bug fix to me. -- ___ Python tracker ___ ___ Python-bug

[issue44659] Remove Ivan from list of,typing experts

2021-07-16 Thread Ken Jin
Ken Jin added the comment: The list for GH reviews is the CODEOWNERS file at https://github.com/python/cpython/blob/main/.github/CODEOWNERS The list for grouping bpo users is the experts index (I hope) at https://devguide.python.org/experts/ Let's wait a bit to hear what Ivan wants. I recal

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +25738 pull_request: https://github.com/python/cpython/pull/27204 ___ Python tracker _

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-16 Thread Jack DeVries
Jack DeVries added the comment: The PR and backport to 3.10 have both been merged, so I think this issue can be closed. -- ___ Python tracker ___

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-16 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25739 pull_request: https://github.com/python/cpython/pull/27205 ___ Python tracker ___ ___ P

[issue44589] Pattern Matching - duplicate keys in mapping patterns

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

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that turning 'exit' and 'quit' into semi-keywords is not acceptible. I added this to my PR review. >>> exit = 3 >>> exit f:\dev\3x> -- ___ Python tracker ___

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another issue: exit() and quit() work unconditionally when called, regardless of the context: "a = (3, exit(), 'abc')". The abbreviated versions will not. An alternative change is to revise the representation. Perhaps tell the truth first by giving the st

[issue44651] An unclear definition in Doc/glossary.rst

2021-07-16 Thread Steven Hsu
Steven Hsu added the comment: Thanks for your reply and suggestion. I can totally understand your explanation about the definition of coercion. In conclusion, I think this glossary entry may need some modification for better understanding, or simply be deleted. So what's the next step? Shou

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-16 Thread Dong-hee Na
New submission from Dong-hee Na : It shows a consistent 1-2% performance improvement. Mean +- std dev: [property_base] 40.6 ns +- 0.6 ns -> [property_vectorcall] 40.0 ns +- 0.7 ns: 1.01x faster -- components: Interpreter Core files: bench_property.py messages: 397701 nosy: corona10, e

[issue44611] CPython uses deprecated randomness API

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +25740 pull_request: https://github.com/python/cpython/pull/27206 ___ Python tracker ___ _

[issue44611] CPython uses deprecated randomness API

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -25740 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +25741 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27206 ___ Python tracker ___

[issue44611] CPython uses deprecated randomness API

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +25742 pull_request: https://github.com/python/cpython/pull/27206 ___ Python tracker ___ _

[issue44611] CPython uses deprecated randomness API

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -25742 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue44659] Remove Ivan from list of typing experts

2021-07-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Remove Ivan from list of,typing experts -> Remove Ivan from list of typing experts ___ Python tracker ___ __

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-16 Thread Dong-hee Na
Dong-hee Na added the comment: Oops sorry, it was the wrong benchmark, it will be faster.. ;) Mean +- std dev: [property_base] 140 ns +- 5 ns -> [property_vectorcall] 125 ns +- 2 ns: 1.12x faster -- ___ Python tracker

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file50155/bench_property.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-16 Thread Dong-hee Na
Change by Dong-hee Na : Removed file: https://bugs.python.org/file50154/bench_property.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-16 Thread Dong-hee Na
Dong-hee Na added the comment: I updated the benchmark, and it shows 1.12x faster -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 8.0 -> 9.0 pull_requests: +25743 pull_request: https://github.com/python/cpython/pull/27207 ___ Python tracker _

<    1   2