
8 Oct
2012
8 Oct
'12
3:22 p.m.
On Monday, 8 October 2012, Antoine Pitrou wrote:
- `p[q]` joins path q to path p
-1 it isn't really indexing
- `p + q` joins path q to path p
-1 risk of ambiguity (string concatenation, e.g. it's too easy to assume you can add an extension with p + '.txt')
- `p / q` joins path q to path p
-0 best of the operator options
- `p.join(q)` joins path q to path p
+0 would like it except for the risk of silent errors if p is a string
p.joinpath(q) +1 I wish there was a better name, but I doubt one will appear :-(
Paul