Fix_next should inform if global next is shadowed

Bug #882861 reported by Denis Zawada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
awkwardduet
Confirmed
Low
Unassigned

Bug Description

E.g.

def next(it): pass
next = lambda it: None

Should result in a warning, much like in 2to3.

There are unused imports in the source code, so presumably the author didn’t get around implementing it:

from lib2to3.fixer_util import Call, find_binding

Denis Zawada (ohdeno)
Changed in awkwardduet:
status: New → Incomplete
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.