[Python-Dev] Exception __name__ missing?
Ron Adam
rrr at ronadam.com
Mon Jan 17 21:22:32 CET 2011
Is this on purpose?
Python 3.2rc1 (py3k:88040, Jan 15 2011, 18:11:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> Exception.__name__
'Exception'
>>> e = Exception('has no name')
>>> e.__name__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Exception' object has no attribute '__name__'
Ron Adam
More information about the Python-Dev
mailing list