On Mar 8, 10:20 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> You forgot the standard disclaimer: "This is extremely dangerous stuff,
> only highly trained professionals can do that! Kids, never try this at
> home!"
;)
Yep, the only good use case for this kind of games is for prototyping
i
En Thu, 08 Mar 2007 05:37:39 -0300, Michele Simionato
<[EMAIL PROTECTED]> escribió:
> The code to enable recognition of CurrentClass is short enough to be
> includede here, but I will qualify it as a five star-level hackery:
You forgot the standard disclaimer: "This is extremely dangerous stuff
Raymond Hettinger wrote:
> Any trick in the book (metaclasses, descriptors, etc) is fair game.
So you are asking for a serious hack, right?
As soon as I saw your challenge I thought "That's difficult. Very
difficult.
No way I can solve that with a simple descriptor/decorator. I need
more POWER.
T
On Tue, Mar 06, 2007 at 11:44:48AM -0800, Arnaud Delobelle wrote:
> On 5 Mar, 18:59, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote:
> [snip]
> > Well in fact I couldn't help but try to improve it a bit. Objects now
> > don't need a callerclass attribute, instead all necessary info is
> > stored in a
[George Sakkis]
> What would the semantics be if m is decorated as local only in A or
> only in B ?
The goal is to as closely as possible emulate the sematics of under-
under name mangling.
Raymond
--
http://mail.python.org/mailman/listinfo/python-list
On 5 Mar, 18:59, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote:
[snip]
> Well in fact I couldn't help but try to improve it a bit. Objects now
> don't need a callerclass attribute, instead all necessary info is
> stored in a global __callerclass__. Bits that didn't work now do.
OK that wasn't reall
On Mar 5, 2:31 am, "Raymond Hettinger" <[EMAIL PROTECTED]> wrote:
> I had an idea but no time to think it through.
> Perhaps the under-under name mangling trick
> can be replaced (in Py3.0) with a suitably designed decorator.
> Your challenge is to write the decorator.
> Any trick in the book (met
On 5 Mar, 14:38, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote:
> On 5 Mar, 07:31, "Raymond Hettinger" <[EMAIL PROTECTED]> wrote:
>
> > I had an idea but no time to think it through.
> > Perhaps the under-under name mangling trick
> > can be replaced (in Py3.0) with a suitably designed decorator.
>
On 5 Mar, 07:31, "Raymond Hettinger" <[EMAIL PROTECTED]> wrote:
> I had an idea but no time to think it through.
> Perhaps the under-under name mangling trick
> can be replaced (in Py3.0) with a suitably designed decorator.
> Your challenge is to write the decorator.
> Any trick in the book (metacl
I had an idea but no time to think it through.
Perhaps the under-under name mangling trick
can be replaced (in Py3.0) with a suitably designed decorator.
Your challenge is to write the decorator.
Any trick in the book (metaclasses, descriptors, etc) is fair game.
Raymond
how we currentl
10 matches
Mail list logo