cpython/Doc/reference
Amaury Forgeot d'Arc ba117ef7e9 #4617: Previously it was illegal to delete a name from the local
namespace if it occurs as a free variable in a nested block.  This limitation
of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF).

This sample was valid in 2.6, but fails to compile in 3.x without this change::

   >>> def f():
   ...     def print_error():
   ...        print(e)
   ...     try:
   ...        something
   ...     except Exception as e:
   ...        print_error()
   ...        # implicit "del e" here


This sample has always been invalid in Python, and now works::

   >>> def outer(x):
   ...     def inner():
   ...        return x
   ...     inner()
   ...     del x

There is no need to bump the PYC magic number: the new opcode is used
for code that did not compile before.
2010-09-10 21:39:53 +00:00
..
compound_stmts.rst #9760: clarify what context expression is. 2010-09-03 22:40:02 +00:00
datamodel.rst Merged revisions 80605-80609,80642-80646,80651-80652,80674,80684-80686,80748,80852,80854,80870,80872-80873,80907,80915-80916,80951-80952,80976-80977,80985,81038-81040,81042,81053,81070,81104-81105,81114,81125,81245,81285,81402,81463,81516,81562-81563,81567,81593,81635,81680-81681,81684,81801,81888,81931-81933,81939-81942,81963,81984,81991,82120,82188,82264-82267 via svnmerge from 2010-06-27 22:32:30 +00:00
executionmodel.rst Merged revisions 78760,78771-78773,78802,78922,78952 via svnmerge from 2010-03-14 10:56:14 +00:00
expressions.rst Fix issue9132 - Documentation for comparing dictionaries is out of date 2010-07-14 20:30:02 +00:00
grammar.rst Merged revisions 65378-65379,65430 via svnmerge from 2008-08-03 09:47:27 +00:00
index.rst Merged revisions 70578,70599,70641-70642,70650,70660-70661,70674,70691,70697-70698,70700,70704 via svnmerge from 2009-03-30 14:51:56 +00:00
introduction.rst Merged revisions 80605-80609,80642-80646,80651-80652,80674,80684-80686,80748,80852,80854,80870,80872-80873,80907,80915-80916,80951-80952,80976-80977,80985,81038-81040,81042,81053,81070,81104-81105,81114,81125,81245,81285,81402,81463,81516,81562-81563,81567,81593,81635,81680-81681,81684,81801,81888,81931-81933,81939-81942,81963,81984,81991,82120,82188,82264-82267 via svnmerge from 2010-06-27 22:32:30 +00:00
lexical_analysis.rst #9451: strengthen warning about __*__ special name usage. 2010-08-02 19:32:43 +00:00
simple_stmts.rst #4617: Previously it was illegal to delete a name from the local 2010-09-10 21:39:53 +00:00
toplevel_components.rst