Re: Extention Module/ list of chars-> string

2005-10-19 Thread Tuvas
Thanks for the help, I actually ended up writing my own simple charlist2string function, I realized it was only about 4 lines of code, but, appreciate the help! -- http://mail.python.org/mailman/listinfo/python-list

Re: Extention Module/ list of chars-> string

2005-10-19 Thread Fredrik Lundh
"Tuvas" wrote: > I am currently writing an extention module that needs to recieve a list > of characters that might vary in size from 0 to 8. This is written as a > list of characters rather than a string because it's easier to > manipulate. However, when I pass this list of characters into the >

Re: Extention Module/ list of chars-> string

2005-10-19 Thread Martin v. Löwis
Tuvas wrote: > A. Change a list of chars to a single string or > B. Read a list of chars in an extention module Either is possible, but I recommend to do A: data = ''.join(data) Then pass the modified data to the extension module. Regards, Martin -- http://mail.python.org/mailman/listinfo/pyth

Extention Module/ list of chars-> string

2005-10-19 Thread Tuvas
I am currently writing an extention module that needs to recieve a list of characters that might vary in size from 0 to 8. This is written as a list of characters rather than a string because it's easier to manipulate. However, when I pass this list of characters into the extention module, it keeps