From: Francesc A. <fa...@ca...> - 2005-10-19 08:44:11
|
Ooops, a typo was slipped in yesterday: A Dimarts 18 Octubre 2005 13:57, Francesc Altet va escriure: > For example, the next works: > > vlarray =3D fp.createVLArray( fp.root, > 'test', > ObjectAtom()) # or also UInt8Atom() > vlarray.append( cPickle.dumps( ['aaa' * 130], 2 )) Actually, if you use an ObjectAtom(), you should do: vlarray =3D fp.createVLArray( fp.root, 'test', ObjectAtom()) vlarray.append(['aaa' * 130]) And, if you rather prefer doing the serialization yourself: vlarray =3D fp.createVLArray( fp.root, 'test', UInt8Atom()) vlarray.append( cPickle.dumps( ['aaa' * 130], 2 )) Cheers, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |