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

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 9 07:36:48 CEST 2012


Antoine Pitrou wrote:

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

-1, confuses operation on a path with operation on the object named by the path.

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

-0.9, interacts with string concatenation in undesirable ways

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

+1

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

-0.9, 'append' would be clearer IMO

-- 
Greg



More information about the Python-ideas mailing list