mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
[3.6] Mention enum as a potential use for metaclasses (GH-2982) (GH-3527)
(cherry picked from commit b8d1b9d7c6
)
This commit is contained in:
parent
5513e888e9
commit
547f2a97ea
1 changed files with 2 additions and 2 deletions
|
@ -1875,8 +1875,8 @@ Metaclass example
|
||||||
^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
The potential uses for metaclasses are boundless. Some ideas that have been
|
The potential uses for metaclasses are boundless. Some ideas that have been
|
||||||
explored include logging, interface checking, automatic delegation, automatic
|
explored include enum, logging, interface checking, automatic delegation,
|
||||||
property creation, proxies, frameworks, and automatic resource
|
automatic property creation, proxies, frameworks, and automatic resource
|
||||||
locking/synchronization.
|
locking/synchronization.
|
||||||
|
|
||||||
Here is an example of a metaclass that uses an :class:`collections.OrderedDict`
|
Here is an example of a metaclass that uses an :class:`collections.OrderedDict`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue