Kaydet (Commit) a497b442 authored tarafından Nick Coghlan's avatar Nick Coghlan

Fix the versionadded tags for a couple of my recent changes

üst 42265434
...@@ -207,6 +207,8 @@ Functions and classes provided: ...@@ -207,6 +207,8 @@ Functions and classes provided:
foundation for higher level context managers that manipulate the exit foundation for higher level context managers that manipulate the exit
stack in application specific ways. stack in application specific ways.
.. versionadded:: 3.3
.. method:: enter_context(cm) .. method:: enter_context(cm)
Enters a new context manager and adds its :meth:`__exit__` method to Enters a new context manager and adds its :meth:`__exit__` method to
...@@ -270,8 +272,6 @@ Functions and classes provided: ...@@ -270,8 +272,6 @@ Functions and classes provided:
callbacks registered, the arguments passed in will indicate that no callbacks registered, the arguments passed in will indicate that no
exception occurred. exception occurred.
.. versionadded:: 3.3
Examples and Recipes Examples and Recipes
-------------------- --------------------
......
...@@ -30,6 +30,8 @@ Dynamic Type Creation ...@@ -30,6 +30,8 @@ Dynamic Type Creation
The *exec_body* callback should accept the class namespace as its sole The *exec_body* callback should accept the class namespace as its sole
argument and update the namespace directly with the class contents. argument and update the namespace directly with the class contents.
.. versionadded:: 3.3
.. function:: prepare_class(name, bases=(), kwds=None) .. function:: prepare_class(name, bases=(), kwds=None)
Calculates the appropriate metaclass and creates the class namespace. Calculates the appropriate metaclass and creates the class namespace.
...@@ -46,6 +48,7 @@ Dynamic Type Creation ...@@ -46,6 +48,7 @@ Dynamic Type Creation
``'metaclass'`` entry removed. If no *kwds* argument is passed in, this ``'metaclass'`` entry removed. If no *kwds* argument is passed in, this
will be an empty dict. will be an empty dict.
.. versionadded:: 3.3
.. seealso:: .. seealso::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment