[issue29141] error in 2to3

Sandeep Srinivasa report at bugs.python.org
Tue Jan 3 09:04:28 EST 2017


New submission from Sandeep Srinivasa:

docs_uploaded_at = dict(filter(lambda (x,y):True if len(y) == 3 else False,docs_uploaded_at.iteritems()))

produces

docs_uploaded_at = dict([x_y for x_y in iter(docs_uploaded_at.items()) if True if len(x_y[1]) == 3 else False])


without_transaction_users = filter(lambda x:False if x.phone in with_transaction_mobile else True,registered)

produces

without_transaction_users = [x for x in registered if False if x.phone in with_transaction_mobile else True]

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 284562
nosy: Sandeep Srinivasa
priority: normal
severity: normal
status: open
title: error in 2to3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29141>
_______________________________________


More information about the Python-bugs-list mailing list