
9 Oct
2012
9 Oct
'12
12:47 a.m.
On Mon, Oct 08, 2012 at 08:47:07PM +0200, Antoine Pitrou solipsis@pitrou.net wrote:
- `p[q]` joins path q to path p
-1. Confusing with p[-2]
- `p + q` joins path q to path p
-0. What is "path addition"? Concatenation? Joining? Puzzled...
- `p / q` joins path q to path p
+0. Again, "path division" is a bit strange but at least I understand '/' is the separation symbol.
- `p.join(q)` joins path q to path p
+1. That one I love best, even with the name "join". I used to use os.path.join() quite extensively so there is no chance I confuse that with str.join().
Oleg.
--
Oleg Broytman http://phdru.name/ phd@phdru.name
Programmers don't die, they just GOSUB without RETURN.