Petr Viktorin <[email protected]> added the comment:
An option would be to use a colon to separate the module(s) from the
attribute(s). The "inspect" module CLI does this, for example:
https://docs.python.org/3/library/inspect.html#command-line-interface
$ python3 -m inspect urllib.parse:SplitResult.geturl
def geturl(self):
return urlunsplit(self)
A colon can't appear in an identifier, so the old way can be used if there's no
colon in the argument, making this backwards compatible.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32414>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com