Message395171
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. |
|
Date |
User |
Action |
Args |
2021-06-05 16:21:38 | wyz23x2 | set | recipients:
+ wyz23x2, asvetlov, serhiy.storchaka, yselivanov, bluenix |
2021-06-05 16:21:38 | wyz23x2 | set | messageid: <1622910098.04.0.109350185126.issue44318@roundup.psfhosted.org> |
2021-06-05 16:21:38 | wyz23x2 | link | issue44318 messages |
2021-06-05 16:21:37 | wyz23x2 | create | |
|