On Mon, Jan 28, 2019 at 8:44 PM Jamesie Pic firstname.lastname@example.org wrote:
This is a frequent suggestion. It is also one that makes no sense whatsoever if you think about Python's semantics. What would you expect to happen with this line:
['foo', b'foo', 37, re.compile('foo')].join('_')
List are not restricted to containing only strings (or things that are string-like enough that they might play well with joining). Growing a method that pertains only to that specialized sort of list breaks the mental model of Python. Moreover, there is no way to TELL if a particular list is a "list of strings" other than checking each item inside it (unlike in many languages).