[New-bugs-announce] [issue27855] 2to3: Wrong code output w/ has_key

E Rippey report at bugs.python.org
Wed Aug 24 20:11:33 EDT 2016


New submission from E Rippey:

The "has_key" fixer in 2to3 produces wrong code on the following example:

input:"a.has_key(b)and x"
output:"b in aand x"

Note the lack of space before "and" in the input.

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 273613
nosy: rippey.e
priority: normal
severity: normal
status: open
title: 2to3: Wrong code output w/ has_key
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27855>
_______________________________________


More information about the New-bugs-announce mailing list