summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBart van Merrienboer <bart.vanmerrienboer@gmail.com>2015-01-21 12:34:52 -0500
committerBart van Merrienboer <bart.vanmerrienboer@gmail.com>2015-01-21 12:34:52 -0500
commit69bf037556cde9a1c0f0cf94bac9517a4af68a0f (patch)
treefe53e40344211f1f622f7e0bbf98729a61d63dc0 /documentation
parent4f20ac8e8abfb615febae81e3688cdcc43f57d50 (diff)
downloadsix-git-69bf037556cde9a1c0f0cf94bac9517a4af68a0f.tar.gz
Introduces a wrapper to create unbound methods.
Diffstat (limited to 'documentation')
-rw-r--r--documentation/index.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/documentation/index.rst b/documentation/index.rst
index a8632e7..d838e38 100644
--- a/documentation/index.rst
+++ b/documentation/index.rst
@@ -232,6 +232,13 @@ functions and methods is the stdlib :mod:`py3:inspect` module.
requires the *obj*'s class to be passed.
+.. function:: create_unbound_method(func, cls)
+
+ Return an unbound method object wrapping *func*. In Python 2, this will return
+ a :func:`py3:types.MethodType` object. In Python 3 unbound methods do not
+ exist and this wrapper will return *func*.
+
+
.. class:: Iterator
A class for making portable iterators. The intention is that it be subclassed