[Python-ideas] PEP 428: poll about the joining syntax
phd at phdru.name
Mon Oct 8 21:17:16 CEST 2012
On Mon, Oct 08, 2012 at 08:47:07PM +0200, Antoine Pitrou <solipsis at 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
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas