This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aroberge
Recipients aroberge
Date 2021-07-07.09:23:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625649836.78.0.756397616199.issue44576@roundup.psfhosted.org>
In-reply-to
Content
Consider the following program

# example.py
one = 1
two = "two"
a = [one
    .
    two]

Running this program with Python versions before 3.10, yields the following traceback:

Traceback (most recent call last):
  File "C:\Users\andre\example.py", line 3, in <module>
    a = [one
AttributeError: 'int' object has no attribute 'two'

The line shown correctly includes the 'int' object. I have verified that this is the case for Python 3.6 to 3.9 inclusively.

However, with Python version 3.10.0b3, the following traceback is generated:

Traceback (most recent call last):
  File "C:\Users\andre\example.py", line 5, in <module>
    two]
AttributeError: 'int' object has no attribute 'two'
History
Date User Action Args
2021-07-07 09:23:56arobergesetrecipients: + aroberge
2021-07-07 09:23:56arobergesetmessageid: <1625649836.78.0.756397616199.issue44576@roundup.psfhosted.org>
2021-07-07 09:23:56arobergelinkissue44576 messages
2021-07-07 09:23:56arobergecreate