Source: yapps2 Version: 2.2.1-1 Severity: normal I know the examples in the source package aren't actually shipped, but it still seems like pretty bad form that two out of four of them are completely broken with the Python 3 port.
$ yapps2 calc.g $ python calc.py File "calc.py", line 48 print '=', expr ^ SyntaxError: invalid syntax $ python3 calc.py File "calc.py", line 6 if not globalvars.has_key(name): print 'Undefined (defaulting to 0):', name ^ SyntaxError: invalid syntax $ yapps2 xml.g $ python xml.py File "xml.py", line 147 print '____Running tests_______________________________________' ^ SyntaxError: invalid syntax $ python3 xml.py File "xml.py", line 147 print '____Running tests_______________________________________' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('____Running tests_______________________________________')? This is hopefully just a matter of converting the print statements in examples/calc.g and examples/xml.g to Python 3 syntax (since yapps2 itself now inserts "from __future__ import print_function" and thus requires parsers to use the new syntax). -- Colin Watson [cjwat...@debian.org]