diff --git a/doc/v2/scope.html b/doc/v2/scope.html index 17450645..93a9b100 100644 --- a/doc/v2/scope.html +++ b/doc/v2/scope.html @@ -64,11 +64,16 @@
scopeThe scope class has an associated global Python object
- which controls the Python namespace in which new extension classes and
- wrapped functions will be defined as attributes. Default-constructing a
- new scope object binds that object to the associated Python
- object. Constructing a is associated with , and
The scope class has an associated global Python
+ object which controls the Python namespace in which new extension
+ classes and wrapped functions will be defined as
+ attributes. Default-constructing a new scope object
+ binds it to the associated global Python object. Constructing a
+ scope object with an argument changes the associated
+ global Python object to the one held by the argument, until the
+ lifetime of the scope object ends, at which time the
+ associated global Python object reverts to what it was before the
+ scope object was constructed.
scope
synopsis>>> import nested +>>> nested.yes +1 >>> y = nested.X.Y() >>> y.g() -0 +42-
Revised 03 October, 2002
+Revised 09 October, 2002
© Copyright Dave Abrahams 2002. All Rights