Thank you very much !
Nicolas
--
http://mail.python.org/mailman/listinfo/python-list
nicolas_riesch wrote:
> I just don't understand why it returns the "length consumed".
>
> Does it means that in some case, the input string can be only partially
> converted ?
For an encoder, I believe the answer is "no". For a decoder, it is
a definite yes: if the input does not end with a comp
On Thu, Jul 28, 2005 at 08:42:57AM -0700, nicolas_riesch wrote:
> And a last question: can I call this "enc" function from multiple
> threads ?
Yes.
Jeff
pgphSka1eU9PQ.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
When I use an encoder function from codecs module, documentation says
that it encodes the object input and returns a tuple (output object,
length consumed).
>>> import codecs
>>> enc=codecs.getencoder('iso-8859-1')
>>> enc(u'asdf')
('asdf', 4)
>>>
I just don't understand why it returns the "leng