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 wyz23x2
Recipients asvetlov, bluenix, serhiy.storchaka, wyz23x2, yselivanov
Date 2021-06-05.16:21:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622910098.04.0.109350185126.issue44318@roundup.psfhosted.org>
In-reply-to
Content
OK, so:
>>> (1).__slots__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'int' object has no attribute '__slots__'
>>> 4.5.__slots__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'float' object has no attribute '__slots__'
>>> complex(5, 2).__slots__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'complex' object has no attribute '__slots__'
>>> 'Hello'.__slots__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'str' object has no attribute '__slots__'
>>> b'50'.__slots__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'bytes' object has no attribute '__slots__'
>>> [2.72, 3.14].__slots__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute '__slots__'
>>> 

Many many more.
So these *all* need __slots__???
That a major change into Python 5000.
History
Date User Action Args
2021-06-05 16:21:38wyz23x2setrecipients: + wyz23x2, asvetlov, serhiy.storchaka, yselivanov, bluenix
2021-06-05 16:21:38wyz23x2setmessageid: <1622910098.04.0.109350185126.issue44318@roundup.psfhosted.org>
2021-06-05 16:21:38wyz23x2linkissue44318 messages
2021-06-05 16:21:37wyz23x2create