[Tutor] dictionary2unicode and unicode2dictionnary

2005-04-08 Thread BRINER Cedric
hi, sorry to relaunch this topie but I really need this to work. (o.o)' how can I have an unicode pickled data ??? e.g. a={'partition': u'/export/diskH1/home_evol/ricquebo', 'rsmFirstname': u'Fran\xe7ois', 'rsmLastname': u'Ricquebourg', 'size': u'8161222.0', 'size_max': '1'} <(hint: rsmFirstna

Re: [Tutor] OO newbie

2005-04-08 Thread BRINER Cedric
> > 1- > > this exemple will also works if you replace the: > > super(C,self).__init__( *args, **kw) > > by > > dict.__init__(self, *args, **kw) > > > > but I do not understand this dict.__init_... call. > > Shouldn't you call the super class constructor?? > > super is just a convenience feature a

Re: [Tutor] pickle in unicode format

2005-04-07 Thread BRINER Cedric
On Tue, 2005-04-05 at 11:33 -0700, Danny Yoo wrote: > > > > I have this dictionnary : > > > > > > a={'partition': u'/export/diskH1/home_evol/ricquebo', > > > 'rsmFirstname': u'Fran\xe7ois', > > > 'rsmLastname': u'Ricquebourg', > > > 'size': u'8161222.0', > > > 'size_max': '1'} > > > > > > and

[Tutor] pickle in unicode format

2005-04-05 Thread BRINER Cedric
hi, I have this dictionnary : a={'partition': u'/export/diskH1/home_evol/ricquebo', 'rsmFirstname': u'Fran\xe7ois', 'rsmLastname': u'Ricquebourg', 'size': u'8161222.0', 'size_max': '1'} and I'd like to *serialize* it with pickle and that the output format will be of type unicode. unicode(pi

[Tutor] unicode type on cgi script

2005-03-15 Thread BRINER Cedric
python-2.3 apache2 hi, I'm trying to use unicode function into a cgi script with no success. # cedric.py--- #!/usr/bin/python import os,sys import cgi import cgitb; cgitb.enable() print "Content-Type: text/html\ "+os.linesep+"\ "+os.linesep+"hipo'potame" sys.stdout.flush() content = u'c\xe