diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-08-21 22:54:47 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-08-21 22:54:47 -0500 |
commit | cf4b2bed2a31b2ea37ff8c5064e3e8668ae06d41 (patch) | |
tree | 33c444605aeea9c4826241a4fef4173b9e6120d5 /documentation/index.rst | |
parent | ee3001df4233ace91eba315c9f8f574f1db6aa5b (diff) | |
download | six-git-cf4b2bed2a31b2ea37ff8c5064e3e8668ae06d41.tar.gz |
rephrase add_metaclass paragraph
Diffstat (limited to 'documentation/index.rst')
-rw-r--r-- | documentation/index.rst | 7 |
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): |