Re: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread wesley chun
> > You're mixing two completely different approaches of building a > > property. If that code is actually in the book like that, that's a typo > > that you should mention to the author. > > : > > The recipe you're referring to uses a magical function that returns a > > dictionary of getter f

Re: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread George Sakkis
On Mar 18, 6:03 am, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: > Carsten Haese wrote: > > On Tue, 2008-03-18 at 09:06 +0100, Gabriel Rossetti wrote: > > >> Hello, > > >> I am reading core python python programming and it talks about using the > >> idiom > >> described on > >>http://aspn.activestat

Re: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread Gabriel Rossetti
Carsten Haese wrote: > On Tue, 2008-03-18 at 09:06 +0100, Gabriel Rossetti wrote: > >> Hello, >> >> I am reading core python python programming and it talks about using the >> idiom >> described on >> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 . >> >> I'm using python 2.5.1

Re: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread Gabriel Rossetti
Carsten Haese wrote: > On Tue, 2008-03-18 at 09:06 +0100, Gabriel Rossetti wrote: > >> Hello, >> >> I am reading core python python programming and it talks about using the >> idiom >> described on >> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 . >> >> I'm using python 2.5.1

Re: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread Carsten Haese
On Tue, 2008-03-18 at 09:06 +0100, Gabriel Rossetti wrote: > Hello, > > I am reading core python python programming and it talks about using the > idiom > described on > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 . > > I'm using python 2.5.1 and if I try : > > class MyClass

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread Gabriel Rossetti
Hello, I am reading core python python programming and it talks about using the idiom described on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 . I'm using python 2.5.1 and if I try : class MyClass(object): def __init__(self): self._foo = "foo" self._bar =