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

Matt Chaput matt at whoosh.ca
Thu Oct 11 19:33:38 CEST 2012


 > - `p[q]` joins path q to path p

-1

 > - `p + q` joins path q to path p

+1

 > - `p / q` joins path q to path p

+0

 > - `p.join(q)` joins path q to path p

+1

I think .join() should be the "obvious" way to do it and + should be a 
shortcut.

Matt




More information about the Python-ideas mailing list