diff --git a/homeworks/9-variables.md b/homeworks/9-variables.md new file mode 100644 index 0000000..ddadf39 --- /dev/null +++ b/homeworks/9-variables.md @@ -0,0 +1,11 @@ +## Теория + +База: +- Байткод для `LOAD_FAST` и прочего: https://docs.python.org/3/library/dis.html#opcode-LOAD_FAST +- `LOAD_CLOSURE:` https://docs.python.org/3/library/dis.html#opcode-LOAD_CLOSURE +- `UnboundLocalError`: https://docs.python.org/3/library/exceptions.html#UnboundLocalError +- Rules for `global` and `local` variables: https://docs.python.org/3/faq/programming.html#what-are-the-rules-for-local-and-global-variables-in-python +- `locals`: https://docs.python.org/3/library/functions.html#locals +- `globals`: https://docs.python.org/3/library/functions.html#globals +- `Cell` objects: https://docs.python.org/3/c-api/cell.html +- Константы в Python: https://sobolevn.me/2018/07/real-python-contants diff --git a/lectures/9-variables.key b/lectures/9-variables.key new file mode 100755 index 0000000..2656761 Binary files /dev/null and b/lectures/9-variables.key differ