3 ms·
Print() is valid in Python2. It will print a tuple under some conditions, but that is still syntactically valid and a graceful degradation. (Print is for huma
by keenerd 9y ago
Print() is valid in Python2. It will print a tuple under some conditions, but that is still syntactically valid and a graceful degradation. (Print is for humans to read. As long as a human can understand it, good enough. Going for full identical behavior costs extra :-) Valid-but-incompatible is fine for polyglot stuff. Merge the files and put in a version test around those parts.
- masklinn 9y ago> Print() is valid in Python2. print("a", end=" ") is not, neither is class Foo(metaclass=Bar)