Skip to content

Commit 97e5ef1

Browse files
authored
Add example for global-at-module-level message documentation (#6203)
1 parent 16795c9 commit 97e5ef1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
price = 25
2+
global price # [global-at-module-level]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
price = 25
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* `Official Python FAQ - global and local <https://docs.python.org/3/faq/programming.html#what-are-the-rules-for-local-and-global-variables-in-python>`_
2+
* `PEP 3104 - Access to Names in Outer Scopes <https://peps.python.org/pep-3104/>`_
3+
* `Python global statement <https://docs.python.org/3/reference/simple_stmts.html#global>`_

0 commit comments

Comments
 (0)