[Python-Dev] PEP about sys.implementation and implementation specific user site directory
Benjamin Peterson
benjamin at python.org
Sat Oct 10 04:49:02 CEST 2009
2009/10/9 Brett Cannon <brett at python.org>:
> But I honestly don't see why this doesn't belong in sys; it has to do with
> the system environment which is the interpreter. Yes, some things currently
> in sys could possibly be put elsewhere (e.g. the exception stuff could be in
> 'exceptions'), but I don't think sys is that much of an odd collection of
> code. Without having a desire to eventually clean up the sys module (which I
> am not proposing as I know that will never fly) I don't see this as being
> worth it.
That doesn't mean we have to make it more dirty. usersiteprefix is
used exclusively by site.py to load user modules; it has no function
in the interpreter core.
>> Besides, if _sys is a builtin module, importing it will not
>> add much overhead.
>
> Well, that's assuming the other interpreters makes it built-in. Otherwise
> it's only a CPython/python.org perk.
As far as I am aware, all current Python implementations can build in modules.
--
Regards,
Benjamin
More information about the Python-Dev
mailing list