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 scoder
Recipients Dormouse759, ncoghlan, petr.viktorin, scoder, terry.reedy
Date 2017-09-07.14:31:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504794695.54.0.470739115902.issue30403@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-09-07 14:31:35scodersetrecipients: + scoder, terry.reedy, ncoghlan, petr.viktorin, Dormouse759
2017-09-07 14:31:35scodersetmessageid: <1504794695.54.0.470739115902.issue30403@psf.upfronthosting.co.za>
2017-09-07 14:31:35scoderlinkissue30403 messages
2017-09-07 14:31:35scodercreate