On 9/1/05, Bill Janssen <janssen at parc.com> wrote: > > Providing you can live with adding a pair of parentheses to that, you can > > have: > > > > def print(*args): > > sys.stdout.write(' '.join(args) + '\n') > > > > I think the language would be cleaner if it lacked this weird exception for > > `print`. > > Charles, > > I agree that it would be cleaner. I just don't think cleanliness is > all that interesting -- usefulness trumps it every time. And if Talking about cleanliness, I'm not sure which is cleaner:: print >> sys.stderr, "This is a long sentence that I " \ "had to cut in two." print("This is a long sentence that I " "had to cut in two.", stream=sys.stderr) Sometimes I'll do this because I don't like the backslashes:: print >> sys.stderr, ("This is a long sentence that " "Had to cut in two.") Also, I find the ">>" syntax has always bothered me. I find it useful but so out-of-place in the language. +1 for removing the print statement.
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