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 eric.snow
Recipients Arfrever, aronacher, brett.cannon, eric.snow, ncoghlan, rhettinger
Date 2014-05-26.19:52:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401133968.38.0.0500205393112.issue20383@psf.upfronthosting.co.za>
In-reply-to
Content
I give. :)  You've made good points about builtins and C implementations.  Also, thinking about issue #21235 has changed my perspective a bit.

As to _SpecMethods, I mean just drop the class and turn the methods into functions:

* name: <name> -> _spec_<name> (or whatever)
* signature: self -> spec
* body: self.spec -> spec
* body: self.<method> -> method (there is interplay between methods)

And then importlib.util.new_module:

def new_module(spec):
    return _bootstrap._spec_create(spec)
History
Date User Action Args
2014-05-26 19:52:48eric.snowsetrecipients: + eric.snow, brett.cannon, rhettinger, ncoghlan, aronacher, Arfrever
2014-05-26 19:52:48eric.snowsetmessageid: <1401133968.38.0.0500205393112.issue20383@psf.upfronthosting.co.za>
2014-05-26 19:52:48eric.snowlinkissue20383 messages
2014-05-26 19:52:48eric.snowcreate