.. _global-at-module-level: global-at-module-level / W0604 ============================== **Message emitted:** ``Using the global statement at the module level`` **Description:** *Used when you use the "global" statement at the module level since it has no effect.* **Problematic code:** .. literalinclude:: /data/messages/g/global-at-module-level/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/g/global-at-module-level/good.py :language: python **Related links:** - `Official Python FAQ - global and local `_ - `PEP 3104 - Access to Names in Outer Scopes `_ - `Python global statement `_ Created by the `variables `__ checker.