Fix numbered bullet points
This commit is contained in:
parent
7bac3da1c4
commit
2e9b04a22a
20
pep-0422.txt
20
pep-0422.txt
|
@ -79,16 +79,16 @@ Proposal
|
|||
This PEP proposes that a mechanism be added to Python 3 that meets the
|
||||
following criteria:
|
||||
|
||||
# Restores the ability for class namespaces to have some influence on the
|
||||
class creation process (above and beyond populating the namespace itself),
|
||||
but potentially without the full flexibility of the Python 2 style
|
||||
``__metaclass__`` hook
|
||||
# Integrates nicely with class inheritance structures (including mixins and
|
||||
multiple inheritance)
|
||||
# Integrates nicely with the implicit ``__class__`` reference and
|
||||
zero-argument ``super()`` syntax introduced by PEP 3135
|
||||
# Can be added to an existing base class without a significant risk of
|
||||
introducing backwards compatibility problems
|
||||
1. Restores the ability for class namespaces to have some influence on the
|
||||
class creation process (above and beyond populating the namespace itself),
|
||||
but potentially without the full flexibility of the Python 2 style
|
||||
``__metaclass__`` hook
|
||||
2. Integrates nicely with class inheritance structures (including mixins and
|
||||
multiple inheritance)
|
||||
3. Integrates nicely with the implicit ``__class__`` reference and
|
||||
zero-argument ``super()`` syntax introduced by PEP 3135
|
||||
4. Can be added to an existing base class without a significant risk of
|
||||
introducing backwards compatibility problems
|
||||
|
||||
One mechanism that would achieve this goal is to add a new class
|
||||
initialisation hook, modelled directly on the existing instance
|
||||
|
|
Loading…
Reference in New Issue