]> granicus.if.org Git - python/commitdiff
[3.6] Mention enum as a potential use for metaclasses (GH-2982) (GH-3527)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Sep 2017 04:55:23 +0000 (21:55 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Wed, 13 Sep 2017 04:55:23 +0000 (21:55 -0700)
(cherry picked from commit b8d1b9d7c697dd0401491b6d43047acbaf425f02)

Doc/reference/datamodel.rst

index 7c140a3bc86cb80073a6914f35a41a7c6a61f1a0..230caf843a5d9d0949d949a553b59d0ecfabdfa2 100644 (file)
@@ -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`