[Tutor] pyLpd

lumbricus@gmx.net lumbricus@gmx.net
Wed Jan 8 23:26:01 2003


Hi!

> Yes, the array is two chars long, but considered as a string, it _is_ 
> empty (strlen() returns 0). A char s[1000] filled with '\0':s is still 
> 
> an empty string, although the array holding it is 1000 chars in size.
> 
> What I was trying to hint at in my first message was that python, 
> unlike C, has a real 8 bit clean string type. I guess I could have 
> expressed myself clearer. And of course, when working with raw 8-bit 
> data in C one would not handle the data arrays as strings, for exactly 
> 
> this reason.

ACK.
 
> 	/Emil

Greetings, J"o!

-- 
None

-- 
sigfault

+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!