Guido said: > It would be easy to propose join() as a built-in, and this looks > attractive, if it weren't for the existence of os.path.join(). and > join() is special: it is polymorphic in two arguments, and making > it a method of the separator argument doesn't help. How about an operator, then? We already have % rather than a string.format or some such. Presumably this is because Guido thought it was such a handy thing that it should be instantly available at our fingertips. I think a similar argument could be made for string.join, and also its inverse string.split. So, how about: x & s == string.join(x, s) s1 | s2 == string.split(s1, s2) Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
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