'range' object has attribute '__name__'
tjnaughton opened this issue · comments
tjnaughton commented
A minor inconsistency with Python, in case it's of interest.
Python 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 15:51:05) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> range(3).__name__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'range' object has no attribute '__name__'. Did you mean: '__ne__'?
>>>
Brython 3.12.3 on Netscape 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Type "help", "copyright", "credits" or "license" for more information.
>>> range(3).__name__
'range'
>>>