Message 316079 - Python tracker

Message316079

Author petr.viktorin
Recipients brett.cannon, eric.snow, lekma, ncoghlan, petr.viktorin, serhiy.storchaka
Date 2018-05-02.15:00:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525273241.19.0.682650639539.issue32414@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-05-02 15:00:41petr.viktorinsetrecipients: + petr.viktorin, brett.cannon, ncoghlan, lekma, eric.snow, serhiy.storchaka
2018-05-02 15:00:41petr.viktorinsetmessageid: <1525273241.19.0.682650639539.issue32414@psf.upfronthosting.co.za>
2018-05-02 15:00:41petr.viktorinlinkissue32414 messages
2018-05-02 15:00:41petr.viktorincreate