Re: [Tutor] int to bytes and the other way around

2009-07-06 Thread Stefan Behnel
Chris Fuller wrote: > The only things that matter are the arguments and the result. It sounds to > me > like a good case use for SWIG (http:://www.swig.org). You can do really > complicated stuff with swig, and it takes a correspondingly steep learning > curve to achieve, but doing simple stu

Re: [Tutor] int to bytes and the other way around

2009-07-06 Thread Chris Fuller
The only things that matter are the arguments and the result. It sounds to me like a good case use for SWIG (http:://www.swig.org). You can do really complicated stuff with swig, and it takes a correspondingly steep learning curve to achieve, but doing simple stuff is really simple. It sounds

Re: [Tutor] int to bytes and the other way around

2009-07-06 Thread Rich Lovely
2009/7/6 Timo : > I have written a program that uses a C++ module as backend. Now I found out > that I can use Python to call an underneath C lib. That's nice, so I don't > need to Popen() the C++ module. > > I have a problem though with some info that is returned (always an integer). > I'll try to

Re: [Tutor] int to bytes and the other way around

2009-07-06 Thread Kent Johnson
On Mon, Jul 6, 2009 at 4:48 AM, Timo wrote: > I have written a program that uses a C++ module as backend. Now I found out > that I can use Python to call an underneath C lib. That's nice, so I don't > need to Popen() the C++ module. > > I have a problem though with some info that is returned (alway

[Tutor] int to bytes and the other way around

2009-07-06 Thread Timo
I have written a program that uses a C++ module as backend. Now I found out that I can use Python to call an underneath C lib. That's nice, so I don't need to Popen() the C++ module. I have a problem though with some info that is returned (always an integer). I'll try to explain a bit, this is