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

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 9 07:18:20 CEST 2012


Massimo DiPierro wrote:
> The fact that string paths in Unix use the / to represent concatenation 
> is accidental. 

Maybe so, but it can be regarded as a fortuitous accident, since
/ also happens to be an operator in Python, so it would have
mnemonic value to Unix users.

The correspondence is not exact for Windows users, but / is similar
enough to still have some mnemonic value for them. And all the
OSes using other separators seem to have died out.

-- 
Greg



More information about the Python-ideas mailing list