mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Get rid of __context__, per the latest changes to PEP 343 and python-dev
discussion. There are two places of documentation that still mention __context__: Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without spending a whole lot of time thinking about it; and whatsnew, which Andrew usually likes to change himself.
This commit is contained in:
parent
8f6cbe1502
commit
da5b701aee
15 changed files with 27 additions and 202 deletions
|
@ -833,8 +833,6 @@ class CodeGenerator:
|
|||
self.__with_count += 1
|
||||
self.set_lineno(node)
|
||||
self.visit(node.expr)
|
||||
self.emit('LOAD_ATTR', '__context__')
|
||||
self.emit('CALL_FUNCTION', 0)
|
||||
self.emit('DUP_TOP')
|
||||
self.emit('LOAD_ATTR', '__exit__')
|
||||
self._implicitNameOp('STORE', exitvar)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue