On Sat, 1 Apr 2000, Guido van Rossum wrote: New Features in Python 1.6 ========================== [lots 'n' lots] tokens = "foo bar baz".split(" ") tokens = " ".split("foo bar baz") [and Python guesses which to split on by studying the contents]
Has anyone started working up a style guide that'll recommend when to use these new methods, when to use the string module's calls, etc.? Ditto for the other changes --- where there are now two or more ways of doing something, how do I (or my students) tell which one is preferred?
Greg, you should pay real close attention to the date on Guido's msg. It's quite a comment on the state of programming languages in general that this all reads sooooooo plausibly!
Well, you have to remember, I'm the guy who asked for "<" to be a legal Python token :-).