Kaydet (Commit) 547f2a97 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Mariatta

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

(cherry picked from commit b8d1b9d7)
üst 5513e888
...@@ -1875,8 +1875,8 @@ Metaclass example ...@@ -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`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment