[Python-ideas] PEP 428: poll about the joining syntax
INADA Naoki
songofacandy at gmail.com
Tue Oct 9 09:52:52 CEST 2012
- `p[q]` joins path q to path p
-1.
Because I can't imagine consistent iterator and __contains__.
- `p + q` joins path q to path p
+0. I prefer '/' because it is very common path separator.
- `p / q` joins path q to path p
+1
- `p.join(q)` joins path q to path p
+1. But `q` should be `*q`.
-1 on `pathjoin`. `Path.pathjoin` is ugly.
The `urljoin()` is OK because it is just a function.
--
INADA Naoki <songofacandy at gmail.com>
More information about the Python-ideas
mailing list