Message149209
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. |
|
Date |
User |
Action |
Args |
2011-12-11 04:27:05 | meador.inge | set | recipients:
+ meador.inge, pitrou |
2011-12-11 04:27:05 | meador.inge | set | messageid: <1323577625.41.0.637168954085.issue13577@psf.upfronthosting.co.za> |
2011-12-11 04:27:04 | meador.inge | link | issue13577 messages |
2011-12-11 04:27:04 | meador.inge | create | |
|