Hacker News new | past | comments | ask | show | jobs | submit login

Benefit is huge: it's readable, easy to type, and takes care of joining with proper "/" or "\" depending of the plateform.



I'll challenge you: You shouldn't have many paths, should keep them at a centralized location in the code, and there you could just use a normal function with a proper self-documenting name.

It's not like programs consist of path operations to a significant degree, so using fancy syntactic sugar doesn't seem like a worthwhile optimization to me. At all.


You say that because you are not a sysadmin. Python user base is very rich.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: