Address Barry's comments

This commit is contained in:
Antoine Pitrou 2011-11-19 00:43:54 +01:00
parent 93b3583016
commit 500271eecb
1 changed files with 18 additions and 0 deletions

View File

@ -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
============= =============