RE: About size of Unicode string

2005-06-06 Thread Frank Abel Cancio Bello
rg > Subject: Re: About size of Unicode string > > Frank Abel Cancio Bello wrote: > > request.add_header('content-encoding', 'UTF-8') > > The Content-Encoding header is for things like "gzip", not for > specifying the text encoding. Use the

RE: About size of Unicode string

2005-06-06 Thread Frank Abel Cancio Bello
rue that "the size of the entity-body" is "len(data)" independently of the encoding of "data"? > -Original Message- > From: Laszlo Zsolt Nagy [mailto:[EMAIL PROTECTED] > Sent: Monday, June 06, 2005 1:43 PM > To: Frank Abel Cancio Bello; python-list@p

About size of Unicode string

2005-06-06 Thread Frank Abel Cancio Bello
Hi all! I need know the size of string object independently of its encoding. For example: len('123') == len('123'.encode('utf_8')) while the size of '123' object is different of the size of '123'.encode('utf_8') More: I need send in HTTP request a string. Then I need know the length of

concurrent access to object file

2005-05-26 Thread Frank Abel
Hi again! I will make the question more simple: If two call to the "write" method of a file object "occur simultaneously " is totally sure that the data of each call is writen successive or exist the posibility of merge data? where I can find information about this? Thank in advance Frank

concurrent access to object file

2005-05-23 Thread Frank Abel
Hi all! I will build a HTTPServer and dislike that one request is handled at a time (synchronous). So I write: class MyHTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): For log the request and error I create a file and atteched it to the server instance. Then t

Re: get textual content of a Xml element using 4DOM

2005-03-04 Thread Frank Abel Cancio Bello
Hi: PrettyPrint or Print return the value to the console, and i need keep this value in a string variable to work with it, how can i do this? thanks to Uche Frank Abel -Original Message- From: [EMAIL PROTECTED] To: python-list@python.org Date: 4 Mar 2005 09:23:07 -0800 Subject: Re

About standard library improvement

2005-02-03 Thread Frank Abel Cancio Bello
Hi! If I make some improvement to xmlrpclib module, where I should send this improvement to form part of next standard library release? Thank -- http://mail.python.org/mailman/listinfo/python-list