foundation for higher level context managers that manipulate the exit
stack in application specific ways.
+ .. versionadded:: 3.3
+
.. method:: enter_context(cm)
Enters a new context manager and adds its :meth:`__exit__` method to
callbacks registered, the arguments passed in will indicate that no
exception occurred.
- .. versionadded:: 3.3
-
Examples and Recipes
--------------------
The *exec_body* callback should accept the class namespace as its sole
argument and update the namespace directly with the class contents.
+ .. versionadded:: 3.3
+
.. function:: prepare_class(name, bases=(), kwds=None)
Calculates the appropriate metaclass and creates the class namespace.
``'metaclass'`` entry removed. If no *kwds* argument is passed in, this
will be an empty dict.
+ .. versionadded:: 3.3
.. seealso::