[Python-ideas] proposal: os.path.joinuser()

Giampaolo Rodola' g.rodola at gmail.com
Tue Sep 23 09:52:56 CEST 2014


On Tue, Sep 23, 2014 at 9:19 AM, Tarek Ziadé <tarek at ziade.org> wrote:

> Hello
>
> I realize I am using a lot this pattern:
>
>    >>> os.path.join(os.path.expanduser('~'), 'something', 'here')
>    '/Users/tarek/something/here'
>
>
> It's quite complicated, and not really intuitive.
>

I don't find that complicated, just a bit verbose perhaps, but it's
definitively clear what it's doing and it is also explicit.
os.path.joinuser('something', here') would probably be a bit less verbose
but IMO it's not a good enough reason to introduce a new API.


-- 
Giampaolo - http://grodola.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140923/ad182b01/attachment.html>


More information about the Python-ideas mailing list