From b044f73944e5b8a7450037d5f7c760feaeae7db9 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 6 Oct 2009 11:52:22 -0400 Subject: [PATCH] more deleting of incredibly confusing description of "with" blocks --- special-method-names.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/special-method-names.html b/special-method-names.html index 4e47622..4359bd0 100644 --- a/special-method-names.html +++ b/special-method-names.html @@ -717,8 +717,6 @@ class FieldStorage:

A with block defines a runtime context; you “enter” the context when you execute the with statement, and you “exit” the context after you execute the last statement in the block. -

Any class can be used in a with 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. -
Notes You Want…