[issue37248] support conversion of `func(**{} if a else b)`
Shen Han added the comment: Yes, I think so. -- ___ Python tracker <https://bugs.python.org/issue37248> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37248] support conversion of `func(**{} if a else b)`
Shen Han added the comment: This PR https://github.com/python/cpython/pull/12703 solves this problem. But haven't been merged. -- ___ Python tracker <https://bugs.python.org/issue37248> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37248] support conversion of `func(**{} if a else b)`
Shen Han added the comment: The 2to3 tool cannot convert the following code: 1. `func(**{} if a else b)` 2. `func(*[] if a else b)` I think that problem is rooted the outdated Grammar.txt. -- ___ Python tracker <https://bugs.python.org/issue37248> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37248] support conversion of `func(**{} if a else b)`
Change by Shen Han : -- components: 2to3 (2.x to 3.x conversion tool) nosy: Shen Han priority: normal severity: normal status: open title: support conversion of `func(**{} if a else b)` type: enhancement versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue37248> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com