[Python-Dev] String methods... finally

Skip Montanaro skip at mojam.com
Fri Jun 11 21:38:33 CEST 1999


    Barry> IMO, builtin join ought to str()ify all the elements in the
    Barry> sequence, concatenating the results.  That seems an intuitive
    Barry> interpretation of 'join'ing a sequence.  

Any reason why join should be a builtin and not a method available just to
sequences?  Would there some valid interpretation of

    join( {'a': 1} )
    join( 1 )

?  If not, I vote for method-hood, not builtin-hood.  Seems like you'd avoid
some confusion (and some griping by Graham Matthews about how unpure it is
;-).

Skip




More information about the Python-Dev mailing list