[Python-ideas] os.path.abspath - optional startdir argument
Antoine Pitrou
antoine at python.org
Fri Jul 25 15:41:50 CEST 2014
Le 25/07/2014 04:18, Nick Coghlan a écrit :
> > For example, you cannot do:
> >
> > f = open(Path(_file__) / 'app.conf')
> >
> > It will fail.
>
> Just like ipaddress, this is a deliberate design choice that avoids
> coupling low level APIs to a high level convenience library.
Note the gap could be crossed without coupling by introducing a __path__
protocol (or something similar for IP addresses).
Regards
Antoine.
More information about the Python-ideas
mailing list