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

Calvin Spealman ironfroggy at gmail.com
Tue Oct 9 02:39:13 CEST 2012


On Mon, Oct 8, 2012 at 2:47 PM, Antoine Pitrou <solipsis at 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 at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing:
http://www.twitter.com/ironfroggy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121008/c136672d/attachment.html>


More information about the Python-ideas mailing list