Issue 11195: next fixer fooled by trailing characters - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: closed Resolution: wont fix
Dependencies: Superseder: Close 2to3 issues and list them here
View: 45544
Assigned To: Nosy List: benjamin.peterson, piro
Priority: normal Keywords:

Created on 2011-02-11 18:01 by piro, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (1)
msg128412 - (view) Author: Daniele Varrazzo (piro) * Date: 2011-02-11 18:01
An expression such as "x = i.next()[0]" is not fixed by 2to3 in Python 3.1. "x = (i.next())[0]" works instead.

https://github.com/dvarrazzo/psycopg/commit/9e9c22163706b0fffb9da67fe50ea23f91fe1c72