2 ms·
It gets weirder in the old syntax when you specify an output stream: print >>sys.stderr, "Spam" Whereas in the new print function it's a keyword argument:
by nayuki 9y ago
It gets weirder in the old syntax when you specify an output stream:
print >>sys.stderr, "Spam"
Whereas in the new print function it's a keyword argument:
print("Spam", file=sys.stderr)