Lawrence Oluyede wrote:
> look in TestChild's __init__(). Not using super() fails with a
>
> """
> File "/home/rhymes/downloads/simple_logger.py", line 55, in __init__
> Test.__init__(self, "foo")
> File "/home/rhymes/downloads/simple_logger.py", line 24, in _method
> returnval = getattr(self,'_H
Il 2005-12-07, Lawrence Oluyede <[EMAIL PROTECTED]> ha scritto:
> I don't get to fully work the metaclass anyway for other weird reasons
> (using super() I lose an attribute around?!) I'm gonna fix this.
It was a bug of one of the super() in the chain.
Still suffer from deep recursion limit error
Il 2005-12-07, Alex Martelli <[EMAIL PROTECTED]> ha scritto:
> I can't reproduce the infinite recursion you observe, by merging said
> recipe and your definition of class Test, w/Python 2.4.2 on Mac OS 10.4.
It seemed that the problem arose because I was not using super() in a new
style class base
Lawrence Oluyede <[EMAIL PROTECTED]> wrote:
> I've never used metaclasses in real life before and while searching through
> the online Cookbook I found this gorgeous example:
>
> "Wrapping method calls (meta-class example)"
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/198078
>
> Wha
I've never used metaclasses in real life before and while searching through
the online Cookbook I found this gorgeous example:
"Wrapping method calls (meta-class example)"
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/198078
What I want to do in my app is to log all method calls and see