Bruno Desthuilliers a écrit :
(snip)
> class Foo(object):
> bar = {'baz':'bing'}
> def __init__(self):
> self.bar = self.bar
Hem... Should re-read before posting :(
It's of course:
def __init__(self):
self.bar = self.bar.copy()
--
http://mail.python.org/mailman/listinfo/pyt
On Dec 1, 11:31 pm, "Matt Barnicle" <[EMAIL PROTECTED]> wrote:
> >> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
> > aye yaye aye... thanks for the pointers in the right direction.. i
> > fiddled around with the code for a while and now i've reduced it to the
> > *real* issue... i
Matt Barnicle a écrit :
>>>On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
>>
>>aye yaye aye... thanks for the pointers in the right direction.. i
>>fiddled around with the code for a while and now i've reduced it to the
>>*real* issue... i have a class dict variable that apparently
"Matt Barnicle" <[EMAIL PROTECTED]> writes:
>> i have a class dict variable that apparently holds its value across
>> instantiations of new objects..
[...]
> ok, i see... python has a concept i'm not accustomed to
I don't doubt that Python managed to confuse you here, but in this
case there is n
>> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
> aye yaye aye... thanks for the pointers in the right direction.. i
> fiddled around with the code for a while and now i've reduced it to the
> *real* issue... i have a class dict variable that apparently holds its
> value across in
>> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
> aye yaye aye... thanks for the pointers in the right direction.. i
> fiddled around with the code for a while and now i've reduced it to the
> *real* issue... i have a class dict variable that apparently holds its
> value across in
Matt Barnicle <[EMAIL PROTECTED]> wrote:
>hi everyone.. i've been chugging along learning python for a few months
>now and getting answers to all needed questions on my own, but this one
>i can't figure out nor can i find information on the internet about it,
>possibly because i don't understa
> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
>> hi everyone.. i've been chugging along learning python for a few months
>> now and getting answers to all needed questions on my own, but this one
>> i can't figure out nor can i find information on the internet about it,
>> possibly
> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
>> hi everyone.. i've been chugging along learning python for a few months
>> now and getting answers to all needed questions on my own, but this one
>> i can't figure out nor can i find information on the internet about it,
>> possibly
On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
> hi everyone.. i've been chugging along learning python for a few months
> now and getting answers to all needed questions on my own, but this one
> i can't figure out nor can i find information on the internet about it,
> possibly becau
10 matches
Mail list logo