more deleting of incredibly confusing description of "with" blocks

This commit is contained in:
Mark Pilgrim
2009-10-06 11:52:22 -04:00
parent 1e01375257
commit b044f73944
-2
View File
@@ -717,8 +717,6 @@ class FieldStorage:
<p>A <code>with</code> block defines a <a href=http://www.python.org/doc/3.1/library/stdtypes.html#typecontextmanager>runtime context</a>; you &#8220;enter&#8221; the context when you execute the <code>with</code> statement, and you &#8220;exit&#8221; the context after you execute the last statement in the block.
<p>Any class can be used in a <code>with</code> block; no special methods are required. The Python interpreter will automatically set up the runtime context and dispatch all the property and method lookups to your class. However, if you want your class to do something special upon entering or exiting a runtime context, you can define the following special methods.
<table>
<tr><th>Notes
<th>You Want&hellip;