|
@ -1053,7 +1053,7 @@ Introspection and Metaprograming |
|
|
### Variables |
|
|
### Variables |
|
|
```python |
|
|
```python |
|
|
<list> = dir() # Names of in-scope variables. |
|
|
<list> = dir() # Names of in-scope variables. |
|
|
<dict> = locals() # Dict of local variables, same as vars(). |
|
|
|
|
|
|
|
|
<dict> = locals() # Dict of local variables. Also vars(). |
|
|
<dict> = globals() # Dict of global variables. |
|
|
<dict> = globals() # Dict of global variables. |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|