[issue37248] support conversion of `func(**{} if a else b)`

2019-06-15 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. Closing.

--
stage:  -> resolved
status: open -> closed
superseder:  -> Make lib2to3 grammar more closely match Python

___
Python tracker 

___
___
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)`

2019-06-15 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
resolution:  -> duplicate

___
Python tracker 

___
___
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)`

2019-06-15 Thread Shen Han


Shen Han  added the comment:

Yes, I think so.

--

___
Python tracker 

___
___
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)`

2019-06-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

https://bugs.python.org/issue36541 already tracks it. So can this be closed as 
a duplicate?

--

___
Python tracker 

___
___
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)`

2019-06-12 Thread Shen Han


Shen Han  added the comment:

This PR https://github.com/python/cpython/pull/12703 solves this problem. But 
haven't been merged.

--

___
Python tracker 

___
___
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)`

2019-06-12 Thread Shen Han


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 

___
___
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)`

2019-06-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

>From the title is this similar to the PR 
>https://github.com/python/cpython/pull/12703

--
nosy: +xtreak

___
Python tracker 

___
___
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)`

2019-06-12 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Please, can you add some text with an explanation ?

--
nosy: +pablogsal

___
Python tracker 

___
___
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)`

2019-06-12 Thread Shen Han


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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com