On 22/09/2007 7:16 PM, Bjoern Schliessmann wrote:
> Amit Kumar Saha wrote:
>> I have a Python class with data members, say:
>>
>> class Foo:
>>     def __init__(self):
>>
>>         self.a=7
>>         self.b[]={1,3,4}
>                 ^^
> This is invalid syntax.

So are the braces.

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

Reply via email to