[New-bugs-announce] [issue35383] lib2to3 raises ParseError on argument called "print"

Niklas Rosenstein report at bugs.python.org
Mon Dec 3 05:20:07 EST 2018


New submission from Niklas Rosenstein <rosensteinniklas at gmail.com>:

On Python 3.7.0 lib2to3 will not parse code like this:

    def foo(print=None):
      pass

and yield the following error instead

    lib2to3.pgen2.parse.ParseError: bad input: type=1, value='print', context=('', (1, 8))

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 330926
nosy: n_rosenstein
priority: normal
severity: normal
status: open
title: lib2to3 raises ParseError on argument called "print"
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35383>
_______________________________________


More information about the New-bugs-announce mailing list