.. _nonlocal-and-global: nonlocal-and-global / E0115 =========================== **Message emitted:** ``Name %r is nonlocal and global`` **Description:** *Emitted when a name is both nonlocal and global.* **Problematic code:** .. literalinclude:: /data/messages/n/nonlocal-and-global/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/n/nonlocal-and-global/good.py :language: python Created by the `basic `__ checker.