4 ms·
print() "works" but it's not a function in 2.6 without the import. It's still the print statement and those parens are just gratuitous. If you happen to pass
by wyldfire 10y ago
print() "works" but it's not a function in 2.6 without the import. It's still the print statement and those parens are just gratuitous. If you happen to pass multiple "function arguments" then what really happens is that you're providing a tuple to the print statement. This will cause the printout to have commas and parens which is not how the print function behaves. There are other subtle differences between the print statement and function (line-ending, etc).
Example: https://gist.github.com/androm3da/dd257031eeaf3ff09d6654726a63f93f https://gist.github.com/androm3da/dd257031eeaf3ff09d6654726a...