Message249185
The reason I didn't put __qualname__ on code objects is that code objects don't have a __module__ either. That information, up to now, belongs on the module.
Conceptually, a code object could very well be used by multiple functions living in different modules. Now, in practice, I'm not sure that happens (except when constructing function objects on your own, which is not a terribly supported usecase I think).
Also, Ben makes a very point about being able to change a __qualname__. In particular, the user should *still* be able to change a function's __qualname__ even if it's technically stored on the code object. |
|
Date |
User |
Action |
Args |
2015-08-26 07:21:16 | pitrou | set | recipients:
+ pitrou, ncoghlan, belopolsky, rbcollins, ezio.melotti, smurfix, Arfrever, martin.panter, o11c, ilblackdragon, xonatius |
2015-08-26 07:21:16 | pitrou | set | messageid: <1440573676.11.0.370879448801.issue2786@psf.upfronthosting.co.za> |
2015-08-26 07:21:16 | pitrou | link | issue2786 messages |
2015-08-26 07:21:15 | pitrou | create | |
|