[Python-ideas] Why was Path.path added?

Antony Lee antony.lee at berkeley.edu
Thu Apr 21 02:38:34 EDT 2016

Well, it's already there and it's probably too late to remove it, but
introducing the idiom

path_str = getattr(arg, "path", arg)

was not necessary: you could also write

path_str = str(Path(arg))

which works just as well.

My 2c.,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160420/fe575b11/attachment-0001.html>

More information about the Python-ideas mailing list