Re: How to correctly pass “pointer-to-pointer” i nto DLL via ctypes?

2010-11-19 Thread Grigory Petrov
Thank you a lot! I have stripped down my production code to the sample - and it worked. Bug was in another part of my code where free() was called for the memory in question. On Fri, Nov 19, 2010 at 3:39 PM, Diez B. Roggisch wrote: > Grigory Petrov writes: > >> Hello. >> &g

How to correctly pass “pointer-to-pointer” into DLL via ctypes?

2010-11-18 Thread Grigory Petrov
Hello. I have a DLL that allocates memory and returns it. Function in DLL is like this: void Foo( unsigned char** ppMem, int* pSize ) {   * pSize = 4;   * ppMem = malloc( * pSize );   for( int i = 0; i < * pSize; i ++ ) (* pMem)[ i ] = i; } Also, i have a python code that access this function fr

Re: About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-23 Thread Roumen Petrov
anatoly techtonik wrote: On Thu, Jan 22, 2009 at 12:51 AM, Roumen Petrov wrote: Against 2.3, rejected due to dependence on SCons. Also appears to have been incomplete, needing more work. No it was complete but use SCons. Most of changes changes in code you will see again in 3871. I would

Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-21 Thread Roumen Petrov
://bugs.python.org/issue841454 Against 2.3, rejected due to dependence on SCons. Also appears to have been incomplete, needing more work. No it was complete but use SCons. Most of changes changes in code you will see again in 3871. http://bugs.python.org/issue3754 Open by Roumen Petrov, no review, see below

Re: cross-compilation

2008-08-18 Thread Roumen Petrov
Martin v. Löwis wrote: What about to start to resolve issues step by step ? The first step surely should be to get the autoconf issue resolved. I don't think distutils cross-compilation is going to work, instead, people wishing to cross-compile should edit Modules/Setup. Regards, Martin Ple

cross-compilation

2008-08-06 Thread Roumen Petrov
Hi list members, It seems to me that this is discussed many times in the past but without progress. As I understand in general there is no objections and preferred cross-compilation has to be based on distutils (scons was rejected). So I would like to cross-compile from linux(build system)

Tackling setup.py - A bug??

2007-06-09 Thread Alexander Petrov
Clientmodule.o \ -Lp4api6.1 -lclient -lrpc -lsupp -o build/lib.macosx-10.3-ppc-2.5/ P4Client.so \ -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -framework Carbon Not quite the same but close enough. HERE is where the bug shows up If I rerun this same EXACT command at the command line - followed by a setup.py install it works. Can someone with a larger python brain than mine please help me figure this out? It's bugging the crap out fo me... -- BR. Alexander 'zowers' Petrov.jabber:[EMAIL PROTECTED]icq:69694782 http://zowers.googlepages.com/mailto:[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommended IDE for creating GUI?

2006-04-21 Thread petrov
http://wxglade.sourceforge.net/ - WxGlade is one option. It is quite helpful although somewhat unstable. http://wingware.com/ - is an IDE i dont remember if it has a UI builder. Probably worth checking anyway. -- http://mail.python.org/mailman/listinfo/python-list

Re: Interfacing with the command line

2006-03-08 Thread petrov
http://effbot.org/librarybook/os.htm scroll down about half a page to example 8. is that what you're looking for? PV -- http://mail.python.org/mailman/listinfo/python-list

Re: Rapid web app development tool for database

2006-03-02 Thread petrov
TurboGears has Catwalk. Have a look at that. It is a web UI that let's you manipulate the db. Have a look at the the TG Toolbox. -- http://mail.python.org/mailman/listinfo/python-list