[issue32496] lib2to3 fails to parse a ** of a conditional expression

2019-10-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> lib2to3 doesn't parse f(*[] or []) versions: +Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2019-01-14 Thread Ori Avtalion
Ori Avtalion added the comment: This can be circumvented by adding parenthesis: dummy(**(kwargs if kwargs else dict())) -- nosy: +salty-horse ___ Python tracker ___ ___

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2018-09-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2018-01-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2018-01-04 Thread Gregory P. Smith
New submission from Gregory P. Smith : see the attached sample code demonstrating the problem. basically lib2to3 fails to parse: dummy(**kwargs if kwargs else dict()) with an error like: raise ParseError("bad input", type, value, context) lib2to3.pgen2.parse.ParseError: bad input: type=