[issue5425] 2to3 wrong for types.StringTypes
Martin v. Löwis
report at bugs.python.org
Fri Mar 6 20:10:50 CET 2009
Martin v. Löwis <martin at v.loewis.de> added the comment:
> Why I considered the existing translation incorrect was because it
> translates something which was a tuple of types in Python 2.x into a
> type of Python 3.x. I fail to see how this can be useful.
It would translate "isinstance(x, types.StringTypes)" correctly. I agree
that translating to a tuple would be correct in more cases.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5425>
_______________________________________
More information about the Python-bugs-list
mailing list