Message200453
The value of __qualname__ for globals declared in function scope doesn't seems right to me:
>>> def f():
... global C
... class C: pass
... return C.__qualname__
...
>>> f()
'f.<locals>.C'
It would be much more useful to return 'C' in this case. In my case, fixing this would help me write cleaner unit tests for pickle, since it would allow me to keep test classes with their test code. |
|
Date |
User |
Action |
Args |
2013-10-19 17:56:33 | alexandre.vassalotti | set | recipients:
+ alexandre.vassalotti, pitrou |
2013-10-19 17:56:32 | alexandre.vassalotti | set | messageid: <1382205392.94.0.868971273395.issue19301@psf.upfronthosting.co.za> |
2013-10-19 17:56:32 | alexandre.vassalotti | link | issue19301 messages |
2013-10-19 17:56:32 | alexandre.vassalotti | create | |
|