diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-09-13 04:55:23 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-09-13 04:55:23 (GMT) |
commit | 547f2a97ea77ee6b3fe2f5b80c2c1fa20956b5a1 (patch) | |
tree | 649b50a43b5ffd8ae7a31d41d91d95a9eb60bb50 /Doc | |
parent | 5513e888e9a742156c35ce7ab628407d8cf9e1f0 (diff) | |
download | cpython-547f2a97ea77ee6b3fe2f5b80c2c1fa20956b5a1.zip cpython-547f2a97ea77ee6b3fe2f5b80c2c1fa20956b5a1.tar.gz cpython-547f2a97ea77ee6b3fe2f5b80c2c1fa20956b5a1.tar.bz2 |
[3.6] Mention enum as a potential use for metaclasses (GH-2982) (GH-3527)
(cherry picked from commit b8d1b9d7c697dd0401491b6d43047acbaf425f02)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 7c140a3..230caf8 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1875,8 +1875,8 @@ Metaclass example ^^^^^^^^^^^^^^^^^ The potential uses for metaclasses are boundless. Some ideas that have been -explored include logging, interface checking, automatic delegation, automatic -property creation, proxies, frameworks, and automatic resource +explored include enum, logging, interface checking, automatic delegation, +automatic property creation, proxies, frameworks, and automatic resource locking/synchronization. Here is an example of a metaclass that uses an :class:`collections.OrderedDict` |