[Python-ideas] PEP 428 - object-oriented filesystem paths

Massimo DiPierro massimo.dipierro at gmail.com
Tue Oct 9 00:54:04 CEST 2012


+1

On Oct 8, 2012, at 5:47 PM, Greg Ewing wrote:

> Andrew McNabb wrote:
>> Since this really is a matter of personal taste, I'll end my
>> participation in this discussion by voicing support for Nick Coghlan's
>> suggestion of a `join` method, whether it's named `join` or `append` or
>> something else.
> 
> I'd prefer 'append', because
> 
>   path.append("somedir", "file.txt")
> 
> is pretty self-explanatory, whereas
> 
>   path.join("somedir", "path.txt")
> 
> looks confusingly similar to
> 
>   s.join("somedir", "path.txt")
> 
> where s is a string, but has very different semantics.
> 
> -- 
> Greg
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas




More information about the Python-ideas mailing list