Re: How to use ParseTuple with unknown number of args?

2006-07-18 Thread ondekoza
arrays. Can someone point me to a piece of software, where sth. like this is actually used? Stefan S. (Ondekoza) -- http://mail.python.org/mailman/listinfo/python-list

How to use ParseTuple with unknown number of args?

2006-07-18 Thread ondekoza
ycall(d) The C-program should be able to retrieve the array, regardless of its length. I suspect it must be done using "O" or "O!", but I cannot find any examples. Yours Stefan Schroeder (Ondekoza) -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert a "long in a string" to a "long"?

2005-11-20 Thread ondekoza
Thank you, for all the good answers. Somehow I overlooked the 'radix' option in the docs. S -- http://mail.python.org/mailman/listinfo/python-list

How to convert a "long in a string" to a "long"?

2005-11-18 Thread ondekoza
Hello, I need to convert the string "" to a long. To convert this string I tried the following: >>> 0x -1 >>> 0xL 4294967295L OK, this is what I want, so I tried s = long("0xL") ValueError: invalid literal for long(): 0xL s = long("0x") ValueError