[Python-checkins] [3.6] Mention enum as a potential use for metaclasses (GH-2982) (GH-3527)
Mariatta
webhook-mailer at python.org
Wed Sep 13 00:55:26 EDT 2017
https://github.com/python/cpython/commit/547f2a97ea77ee6b3fe2f5b80c2c1fa20956b5a1
commit: 547f2a97ea77ee6b3fe2f5b80c2c1fa20956b5a1
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2017-09-12T21:55:23-07:00
summary:
[3.6] Mention enum as a potential use for metaclasses (GH-2982) (GH-3527)
(cherry picked from commit b8d1b9d7c697dd0401491b6d43047acbaf425f02)
files:
M Doc/reference/datamodel.rst
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 7c140a3bc86..230caf843a5 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`
More information about the Python-checkins
mailing list