Eric Snow added the comment:

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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20383>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to