> > 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
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
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
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
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
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 =