On 12 jul, 17:23, Jeremy  Lynch <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Learning python from a c++ background. Very confused about this:
>
> ============
> class jeremy:
>         list=[]

You've defined list (very bad choice of a name, BTW), as a class
variable. To declare is as instance variable you have to prepend it
with "self."

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to