Re: Is there a faster way to do this?

2008-08-05 Thread RPM1
[EMAIL PROTECTED] wrote: I have a csv file containing product information that is 700+ MB in size. I'm trying to go through and pull out unique product ID's only as there are a lot of multiples. My problem is that I am appending the ProductID to an array and then searching through that array each

Re: Wrapping C with Python

2008-08-04 Thread RPM1
Anish Chapagain wrote: On 4 Aug, 14:14, brad <[EMAIL PROTECTED]> wrote: RPM1 wrote: ... Basically you just compile your C code as a regular C code dll. ctypes then allows you to access the functions in the dll very easily. Does that work with C++ code too or just C? Hi.. I havenot

Re: Wrapping C with Python

2008-08-04 Thread RPM1
brad wrote: RPM1 wrote: ... Basically you just compile your C code as a regular C code dll. ctypes then allows you to access the functions in the dll very easily. Does that work with C++ code too or just C? I believe it does work with C++ although I have not done that. Here's a s

Re: Wrapping C with Python

2008-08-04 Thread RPM1
Anish Chapagain wrote: Hi!! I tried wrapping a simple C code suing SWIG to Python, but am having problem, I am not too familiar with SWIG, (I have looked at it), but you may want to try ctypes in the standard module library. It's very easy to use. I use it on Windows with gcc but I believe

Re: Relationship between GUI and logic?

2008-05-22 Thread RPM1
John Salerno wrote: Basically, the question is this: can you write the logic behind a program (whether it be a game, an email client, a text editor, etc.) without having any idea of how you will implement the GUI? Chess already has at least two solutions that are in widespread use: Winboard

Re: Python is slow

2008-05-22 Thread RPM1
Larry Bates wrote: If your Python program is slow, you have almost assuredly approached it with a wrong method or algorithm. I agree for most applications. There are however times where Python just isn't fast enough, and that's usually when people write extension modules. I have yet to se

Re: Python 2.1 - 2.4 differences

2005-01-30 Thread RPM1
"BOOGIEMAN" <[EMAIL PROTECTED]> wrote ... > I found some e-book about Python 2.1, I want to print it but just to check > first if sintax of Python 2.1 is same as 2.4 ? Also does anybody know where > can I download any newer Python related e-book, because there isn't any > published yet in my count