summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-08-21 22:54:47 -0500
committerBenjamin Peterson <benjamin@python.org>2013-08-21 22:54:47 -0500
commit84c60db45d0e2617f07b729e37668e53e003aa4a (patch)
tree33c444605aeea9c4826241a4fef4173b9e6120d5
parentae116a5aae4caa0531478ce53078ac605dd93e66 (diff)
downloadsix-84c60db45d0e2617f07b729e37668e53e003aa4a.tar.gz
rephrase add_metaclass paragraph
-rw-r--r--documentation/index.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/documentation/index.rst b/documentation/index.rst
index 8343d0b..b4a589f 100644
--- a/documentation/index.rst
+++ b/documentation/index.rst
@@ -285,9 +285,10 @@ Python 2 and 3.
.. function:: add_metaclass(metaclass)
- Decorate a class to replace it with a metaclass-constructed version.
- Similar to :func:`with_metaclass`, but allows the resulting class to be
- created without an intermediate class. For example::
+ Class decorator that replaces a normally-constructed class with a
+ metaclass-constructed one. Unlike :func:`with_metaclass`,
+ :func:`add_metaclass` does not create an intermediate base class between the
+ class being created and its bases. Example usage: ::
@add_metaclass(MyMeta)
class MyClass(object):