On Mon, Oct 8, 2012 at 2:47 PM, Antoine Pitrou solipsis@pitrou.net wrote:
Hello,
Since there has been some controversy about the joining syntax used in PEP 428 (filesystem path objects), I would like to run an informal poll about it. Please answer with +1/+0/-0/-1 for each proposal:
- `p[q]` joins path q to path p
-1 This syntax makes no sense, it doesn't match the syntax in an obvious way
- `p + q` joins path q to path p
-1 Too easy to confuse with string concat
- `p / q` joins path q to path p
+1 Reads like a path, makes logical sense
- `p.join(q)` joins path q to path p
+1 Allows passing as a callable (tho we could just use operator module). I think we should have both / and .join()
(you can include a rationale if you want, but don't forget to vote :-))
Thank you
Antoine.
-- Software development and contracting: http://pro.pitrou.net
Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas