Writing Object Data to Disk

John Machin sjmachin at lexicon.net
Sat Sep 22 13:18:22 CEST 2007


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.




More information about the Python-list mailing list