A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-June/095412.html below:

[Python-Dev] String methods... finally

[Python-Dev] String methods... finally [Python-Dev] String methods... finallySkip 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4