On Sat, Jul 2, 2011 at 5:46 PM, Chris Angelico <ros...@gmail.com> wrote:
> On Sun, Jul 3, 2011 at 8:23 AM, Saqib Ali <saqib.ali...@gmail.com> wrote:
>> So just out of curiosity, why does it work as I had expected when the
>> member contains an integer, but not when the member contains a set?
>
> It's not integer vs set; it's the difference between rebinding and
> calling a method. It's nothing to do with object orientation; the same
> happens with ordinary variables:
<snip>
>>>> c=d=[]
>>>> c,d
> ({}, [])

Nasty typo in your pseudo-interpreter-session there...

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to