Re: [Python-ideas] Positional only arguments

May 20, 2007
8:56 a.m.
On Wed, May 16, 2007 5:25 pm, George Sakkis wrote: [...]
IIRC Michele Simionato made a 'CurrentClass' name available to methods, which contains the class that the method is defined in. While interesting, this doesn't help create 'private' attribute, as name mangling does. In fact it is possible to implement this in pure Python using decorators and metaclasses. I tried to take up the challenge (without bytecode hackery, which I am not capable of) but it turned out you need to chase around the call stack a lot! -- Arnaud
6513
Age (days ago)
6513
Last active (days ago)
0 comments
1 participants
participants (1)
-
Arnaud Delobelle