diff options
author | Éric Araujo <merwok@netwok.org> | 2011-02-24 18:03:10 +0000 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-02-24 18:03:10 +0000 |
commit | 6c3787cb70d8efa5f70939a5db300f56a724d698 (patch) | |
tree | bab3ed85944db0993682255f1bb751c788f38001 /Doc/library/abc.rst | |
parent | 5390d00cc6b99a375140f22e8d75580c1f4cb0a4 (diff) | |
download | cpython-git-6c3787cb70d8efa5f70939a5db300f56a724d698.tar.gz |
Allow usage of SomeABC.register as a class decorator. Patch by Edoardo Spadolini (#10868).
Diffstat (limited to 'Doc/library/abc.rst')
-rw-r--r-- | Doc/library/abc.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst index 9fadbd234e..2eced4541b 100644 --- a/Doc/library/abc.rst +++ b/Doc/library/abc.rst @@ -55,6 +55,9 @@ This module provides the following class: assert issubclass(tuple, MyABC) assert isinstance((), MyABC) + .. versionchanged:: 3.3 + Returns the registered subclass, to allow usage as a class decorator. + You can also override this method in an abstract base class: .. method:: __subclasshook__(subclass) |