Address Barry's comments
This commit is contained in:
parent
93b3583016
commit
500271eecb
18
pep-3155.txt
18
pep-3155.txt
|
@ -112,6 +112,24 @@ As the ``__name__`` attribute, the ``__qualname__`` attribute is computed
|
||||||
statically and it will not automatically follow rebinding.
|
statically and it will not automatically follow rebinding.
|
||||||
|
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
==========
|
||||||
|
|
||||||
|
Excluding the module name
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
As ``__name__``, ``__qualname__`` doesn't include the module name. This
|
||||||
|
makes it independent of module aliasing and rebinding, and also allows to
|
||||||
|
compute it at compile time.
|
||||||
|
|
||||||
|
Reviving unbound methods
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
Reviving unbound methods would only solve a fraction of the problems this
|
||||||
|
PEP solves, at a higher price (an additional object type and an additional
|
||||||
|
indirection, rather than an additional attribute).
|
||||||
|
|
||||||
|
|
||||||
Naming choice
|
Naming choice
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue