Tuvas wrote: > Forgot, var declartions > > int can_han; > int com; > char len; > char dat[8];
That should probably be: int len; char *dat; IIRC, "z" returns the internal string pointer. "#" is definitely not going to return a char. I'm pretty sure it returns an int and not a long. n -- http://mail.python.org/mailman/listinfo/python-list