[3.6] Mention enum as a potential use for metaclasses (GH-2982) (GH-3527)

(cherry picked from commit b8d1b9d7c6)
This commit is contained in:
Miss Islington (bot) 2017-09-12 21:55:23 -07:00 committed by Mariatta
parent 5513e888e9
commit 547f2a97ea
1 changed files with 2 additions and 2 deletions

View 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`