> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/all/python/advanced.md).

# advanced

* `globals()` *always* returns the dictionary of the *module* namespace
* `locals()` *always* returns *a* dictionary of the *current* namespace

print(locals()) will let you do some easy debugging (in fts, extra stuff in global namespace)
