[issue12915] Add inspect.locate and inspect.resolve

Vinay Sajip report at bugs.python.org
Sat Feb 15 12:33:13 EST 2020


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

To be more precise, one could use

^(?!\d)(\w+)(\.(?!\d)(\w+))* for _DOTTED_WORDS and use the re.U flag when compiling the pattern. That should match any packages where segments start with a letter and continue with alphanumerics. Do you agree?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue12915>
_______________________________________


More information about the Python-bugs-list mailing list