Jan Christoph <con-f-...@gmx.net> added the comment:

Okay, so we're a in another scope inside the dictionary comprehension (all 
comprehensions for that matter), and only one symbol is passed to the inside.

That's why `strange_reversed_working = {x+s.replace('(+/-)',''):None for x in 
infts.split(', ') for s in ('+','-','')}` functions, but if you reverse the 
order it does not. That's a real trap.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34076>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to