[issue14673] add sys.implementation

Eric Snow report at bugs.python.org
Thu Apr 26 18:17:19 CEST 2012


Eric Snow <ericsnowcurrently at gmail.com> added the comment:

@Éric - that's a good point.  I considered it for a little bit, but went with the quick and easy think to get it rolling.

There is a real benefit to mandating an API sys.implementation.version.  importlib would use that version to calculate the tag to use for cached modules.  Without a specified/uniform data structure, that job is trickier.

Having an explicit sys.implementation.cache_tag field would solve that, and the importlib code would check for that field first.  However, I didn't want to start off with that as a "required" field, considering that only CPython would take advantage of module caches (as far as I know).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14673>
_______________________________________


More information about the Python-bugs-list mailing list