From 500271eecb468048c4de5e8d9f3bbdd69743f30c Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 19 Nov 2011 00:43:54 +0100 Subject: [PATCH] Address Barry's comments --- pep-3155.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pep-3155.txt b/pep-3155.txt index 95c3a1417..a946aad8b 100644 --- a/pep-3155.txt +++ b/pep-3155.txt @@ -112,6 +112,24 @@ As the ``__name__`` attribute, the ``__qualname__`` attribute is computed 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 =============