3 ms·
>>That's totally bonkers. Actually its not. No one will want to spend time and effort on regression just because the tool maintainers want a print statement to
by kamaal 13y ago
>>That's totally bonkers.
Actually its not. No one will want to spend time and effort on regression just because the tool maintainers want a print statement to be function and not a statement. Or for a small trivial change.
- rat87 13y agofrom __future__ import print_function has been available since 2.6
- camus2 13y agos/print(.*)/print($1) ? Anyway when a language doesnt have a strong unit testing culture,that's what happens.
- aeroevan 13y agoOr just use 2to3 which automates most of those simply changes and nose for unit tests :)
- broodbucket 13y agoThis isn't just a "cosmetic" change, it's actually useful; print as a statement can't be used in list comprehensions, and print as a function comes with end= which is a huge time saver.