4 ms·
Benefit is huge: it's readable, easy to type, and takes care of joining with proper "/" or "\" depending of the plateform.
by sametmax 9y ago
Benefit is huge: it's readable, easy to type, and takes care of joining with proper "/" or "\" depending of the plateform.
- jstimpfle 9y agoI'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.
- sametmax 9y agoYou say that because you are not a sysadmin. Python user base is very rich.