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 jcea
Recipients eric.araujo, jcea, ncoghlan, pitrou, python-dev, sbt, vstinner
Date 2011-12-11.01:54:18
SpamBayes Score 5.215799e-08
Marked as misclassified No
Message-id <1323568459.66.0.42738504523.issue13448@psf.upfronthosting.co.za>
In-reply-to
Content
I am evaluating the use of "__qualname__" in my dtrace probes (issue #13405) and I see things like this:

"""
>>> def a() :
...   class b() :
...     pass
...   return b()
... 
>>> c=a()
>>> c
<__main__.a.<locals>.b object at 0xfe37f3ac>
>>> c.__qualname__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'b' object has no attribute '__qualname__'
>>> a
<function a at 0xfe3800bc>
>>> a.__qualname__
'a'
"""

I guess the class should have a __qualname__ too, haven't it?
History
Date User Action Args
2011-12-11 01:54:19jceasetrecipients: + jcea, ncoghlan, pitrou, vstinner, eric.araujo, python-dev, sbt
2011-12-11 01:54:19jceasetmessageid: <1323568459.66.0.42738504523.issue13448@psf.upfronthosting.co.za>
2011-12-11 01:54:19jcealinkissue13448 messages
2011-12-11 01:54:18jceacreate