On 4/15/2021 12:35 PM, David Mertz wrote:

re 2.2.1

re.__version__ was last modified 2001-10-07 by F. Lundh in bec95b9d8825b39cff46a8c645fa0eeb8409854e. What does '2.2.1' mean? Only Fredrik knows. The commit message says that he rewrote the pattern.sub and pattern.subn methods in C. That should have been user invisible except for speed.

I believe that it is dead data left only for back compatibility and because of an inability to give a deprecation warning.

re PackageNotFoundError('re')

It seems like (somehow or another) importlib.metadata is doing something perhaps more useful for vaex.  But it is doing distinctly worse for re,

Is an effectively meaningless and misleading value better than none?

IDLE once had a version last set, I believe, in 2.5 or 2.6, by K. Kaiser, with whatever meaning it had to him. I removed it in 3.6 (allowed by PEP 434 + RM decision). No one complained.

The real version of any stdlib module is the Python version it is released with, plus and external app versions it is associated with (sqlite and ssl, for instance). It has been suggested, if not decided, that other versions should go.


--
Terry Jan Reedy


_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/4AA7I3RS6D3UDIBZ6ELTEEWXKXIGE5WS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to