Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a497b442
Commit
a497b442
authored
May 22, 2012
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the versionadded tags for a couple of my recent changes
parent
42265434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Doc/library/contextlib.rst
Doc/library/contextlib.rst
+2
-2
Doc/library/types.rst
Doc/library/types.rst
+3
-0
No files found.
Doc/library/contextlib.rst
View file @
a497b442
...
...
@@ -207,6 +207,8 @@ Functions and classes provided:
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
...
...
@@ -270,8 +272,6 @@ Functions and classes provided:
callbacks registered, the arguments passed in will indicate that no
exception occurred.
.. versionadded:: 3.3
Examples and Recipes
--------------------
...
...
Doc/library/types.rst
View file @
a497b442
...
...
@@ -30,6 +30,8 @@ Dynamic Type Creation
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.
...
...
@@ -46,6 +48,7 @@ Dynamic Type Creation
``'metaclass'`` entry removed. If no *kwds* argument is passed in, this
will be an empty dict.
.. versionadded:: 3.3
.. seealso::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment