diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-04-30 13:41:40 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-04-30 13:41:40 (GMT) |
commit | 3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5 (patch) | |
tree | 7f98ecba2e560776b91856eb74487c26c73d5d0d /Doc/library/dis.rst | |
parent | f256f5f3ebf6574a2708cfea36d857846893e71f (diff) | |
download | cpython-3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5.zip cpython-3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5.tar.gz cpython-3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5.tar.bz2 |
check local class namespace before reaching for cells (closes #17853)
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r-- | Doc/library/dis.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 4339f55..613ff42 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -722,6 +722,13 @@ the more significant byte last. Pushes a reference to the object the cell contains on the stack. +.. opcode:: LOAD_CLASSDEREF (i) + + Much like :opcode:`LOAD_DEREF` but first checks the locals dictionary before + consulting the cell. This is used for loading free variables in class + bodies. + + .. opcode:: STORE_DEREF (i) Stores TOS into the cell contained in slot *i* of the cell and free variable |