9 Oct
2012
9 Oct
'12
7:10 a.m.
Antoine Pitrou
- `p[q]` joins path q to path p
-1 I think, this is listed as example in PEP 428. I had to look it up to understand. Not intuitive (to me atleast) as join.
- `p + q` joins path q to path p
+0. I would be +1. But in the PEP you have listed that we need a way separate path behaviors from confusing with builtins Though it provides a lot of convenience, it can be confused with str behaviors or other object behaviors.
- `p / q` joins path q to path p
-1.
- `p.join(q)` joins path q to path p
+0
`p.pathjoin(q)`
+1 It is very explicit and hard to get it wrong.