Author Dennis Sweeney
Recipients Dennis Sweeney, terry.reedy
Date 2021-05-04.03:49:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620100153.12.0.0610630675338.issue44026@roundup.psfhosted.org>
In-reply-to
Content
After bpo-38530, I get this in the python shell:


Python 3.10.0b1 (tags/v3.10.0b1:ba42175, May  3 2021, 20:22:30) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class A:
...     foobar = 1
...
>>> A.foocar
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'A' has no attribute 'foocar'. Did you mean: 'foobar'?
>>>


But I get this in IDLE:

Python 3.10.0b1 (tags/v3.10.0b1:ba42175, May  3 2021, 20:22:30) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
class A:
    foobar = 1

    
A.foocar
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    A.foocar
AttributeError: type object 'A' has no attribute 'foocar'



Can we extend this functionality to IDLE, and fix the discrepancy?
History
Date User Action Args
2021-05-04 03:49:13Dennis Sweeneysetrecipients: + Dennis Sweeney, terry.reedy
2021-05-04 03:49:13Dennis Sweeneysetmessageid: <1620100153.12.0.0610630675338.issue44026@roundup.psfhosted.org>
2021-05-04 03:49:13Dennis Sweeneylinkissue44026 messages
2021-05-04 03:49:12Dennis Sweeneycreate