Re: Problem embedding Python.

2009-10-29 Thread Brandon Keown
O...K... -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem embedding Python.

2009-10-29 Thread Brandon Keown
On Oct 27, 7:48 pm, "Gabriel Genellina" wrote: > En Tue, 27 Oct 2009 06:36:18 -0300, Brandon Keown > escribió: > > > On Oct 27, 2:47 am, "Gabriel Genellina" > > wrote: > > >> You didn't test for the fopen result; are you sure "test

Re: Problem embedding Python.

2009-10-27 Thread Brandon Keown
I found the problem. Evidently as posted on a few other areas of the internet, this is a common problem when trying to use compilers that may have different type definitions for (FILE*). Here is workable solution: #include int main(int argc, char* argv[]) { PyObject* PyFileObject;

Re: Problem embedding Python.

2009-10-27 Thread Brandon Keown
On Oct 27, 2:47 am, "Gabriel Genellina" wrote: > > Crashes, how? Try running inside a debugger to see where it crashes, or at   > least put a few printf. > You didn't test for the fopen result; are you sure "test.py" exists in the   > current directory at the time you run it? > > -- > Gabriel Gene

Problem embedding Python.

2009-10-26 Thread Brandon Keown
I am going to try to embed python in an application, but in simple testing, I could not get it to work. The following code seems like it should work, but it crashes, and I have tried several things. What could I be doing wrong? #include int main(int argc, char* argv[]) { FILE* fp = fop

Help with chaos math extensions.

2005-10-04 Thread Brandon Keown
Hi, I have programmed a fractal generator (Julia Set/Mandelbrot Set) in python in the past, and have had good success, but it would run so slowly because of the overhead involved with the calculation. I recently purchased VS .NET 2003 (Win XP, precomp binary of python 2.4.2rc1) to make my