Attack a sacred Python Cow
bronger at physik.rwth-aachen.de
Thu Jul 24 17:36:45 CEST 2008
Bruno Desthuilliers writes:
> Torsten Bronger a écrit :
>> Kay Schluehr writes:
>>> On 24 Jul., 11:40, Torsten Bronger <bron... at physik.rwth-aachen.de>
>>>> [...] Just like this. However, the compiler could add "self"
>>>> to non-decorated methods which are defined within "class".
>>> And $self2, $self3, ... to the object methods of nested classes
>>> and $cls2, $cls3, ... to the classmethods of those classes...?
>> One could surely find ways to realise this. However, the design
>> goal should be: Make the frequent case simple, and the rare case
> Given the (more and more prominent) use of decorators, metaclasses
> and other meta-programming techniques in Python, I'm not sure the
> cases where you really need access to Python's object model inners
> are that "rare". Not in my code at least.
What does "not rare" mean for you?
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: torsten.bronger at jabber.rwth-aachen.de
More information about the Python-list