.. _redefined-argument-from-local: redefined-argument-from-local / R1704 ===================================== **Message emitted:** ``Redefining argument with the local name %r`` **Description:** *Used when a local name is redefining an argument, which might suggest a potential error. This is taken in account only for a handful of name binding operations, such as for iteration, with statement assignment and exception handler assignment.* **Problematic code:** .. literalinclude:: /data/messages/r/redefined-argument-from-local/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/r/redefined-argument-from-local/good.py :language: python Created by the `refactoring `__ checker.