From: Louie Lu Date: Wed, 13 Sep 2017 04:44:14 +0000 (+0800) Subject: Mention enum as an ex (#2982) X-Git-Tag: v3.7.0a1~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8d1b9d7c697dd0401491b6d43047acbaf425f02;p=python Mention enum as an ex (#2982) --- diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 5f932ae0de..31a7671f55 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1896,8 +1896,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`