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 meador.inge
Recipients meador.inge, pitrou
Date 2011-12-11.04:27:04
SpamBayes Score 7.590126e-07
Marked as misclassified No
Message-id <1323577625.41.0.637168954085.issue13577@psf.upfronthosting.co.za>
In-reply-to
Content
I was recently experimenting with the new PEP 3155 '__qualname__ implementation and noticed that '__qualname__' is not present on builtin methods and functions:

[meadori@motherbrain cpython]$ ./python 
Python 3.3.0a0 (default:aab45b904141+, Dec 10 2011, 14:53:54) 
[GCC 4.6.2 20111027 (Red Hat 4.6.2-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> max.__qualname__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'builtin_function_or_method' object has no attribute '__qualname__'
>>> str.strip.__qualname__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'method_descriptor' object has no attribute '__qualname__'

I will work up a patch.
History
Date User Action Args
2011-12-11 04:27:05meador.ingesetrecipients: + meador.inge, pitrou
2011-12-11 04:27:05meador.ingesetmessageid: <1323577625.41.0.637168954085.issue13577@psf.upfronthosting.co.za>
2011-12-11 04:27:04meador.ingelinkissue13577 messages
2011-12-11 04:27:04meador.ingecreate