2to3 and print function
19 Mar
2008
19 Mar
'08
3:04 p.m.
At the moment, fix_print.py does the Right Thing when it finds ``from __future__ import print_function``... But the 2to3 parser gets upset when print() is passed kwargs: $ cat x.py from __future__ import print_function print("Hello, world!", end=' ') $ 2to3 x.py ... RefactoringTool: Can't parse x.py: ParseError: bad input: type=22, value='=', context=('', (2, 26)) What would be the best way to start fixing this? #2412 is the related bug.
5873
Age (days ago)
5874
Last active (days ago)
4 comments
3 participants
participants (3)
-
Collin Winter
-
David Wolever
-
Guido van Rossum