Message149203
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? |
|
Date |
User |
Action |
Args |
2011-12-11 01:54:19 | jcea | set | recipients:
+ jcea, ncoghlan, pitrou, vstinner, eric.araujo, python-dev, sbt |
2011-12-11 01:54:19 | jcea | set | messageid: <1323568459.66.0.42738504523.issue13448@psf.upfronthosting.co.za> |
2011-12-11 01:54:19 | jcea | link | issue13448 messages |
2011-12-11 01:54:18 | jcea | create | |
|