Message219173
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) |
|
Date |
User |
Action |
Args |
2014-05-26 19:52:48 | eric.snow | set | recipients:
+ eric.snow, brett.cannon, rhettinger, ncoghlan, aronacher, Arfrever |
2014-05-26 19:52:48 | eric.snow | set | messageid: <1401133968.38.0.0500205393112.issue20383@psf.upfronthosting.co.za> |
2014-05-26 19:52:48 | eric.snow | link | issue20383 messages |
2014-05-26 19:52:48 | eric.snow | create | |
|