Message301587
I was kinda guessing that modifying the slot list wasn't a good idea. ;)
My current use case is that I implement the "create" slot because it makes it very easy to intercept the spec and its configuration. It is not passed into "exec" as such, but I need it to initialise the module namespace with "__file__", "__path__", etc.
There is also still the idea of defining our own module type in Cython in order to have a place where we can keep C level module globals, and also to support module properties. PEP 549 will not be available in older Python versions, even if it gets accepted.
Having to choose between main-exec support and these two features seems wrong. |
|
Date |
User |
Action |
Args |
2017-09-07 14:31:35 | scoder | set | recipients:
+ scoder, terry.reedy, ncoghlan, petr.viktorin, Dormouse759 |
2017-09-07 14:31:35 | scoder | set | messageid: <1504794695.54.0.470739115902.issue30403@psf.upfronthosting.co.za> |
2017-09-07 14:31:35 | scoder | link | issue30403 messages |
2017-09-07 14:31:35 | scoder | create | |
|