[Python-ideas] PEP 428: poll about the joining syntax

Mark Shannon mark at hotpy.org
Mon Oct 8 22:20:12 CEST 2012


On 08/10/12 19:47, Antoine Pitrou 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 Counter intuitive
> - `p + q` joins path q to path p
-1 Confusion with strings
> - `p / q` joins path q to path p
+1 Matches (unix) file separator, no confusion with strings
> - `p.join(q)` joins path q to path p
-1 Confusion with strings again
>
p.pathjoin(q)
+0

Cheers,
Mark




More information about the Python-ideas mailing list