Re: Py_GetPath() C API in python 3

2008-12-15 Thread stalex
On 12月13日, 上午9�r55分, "Gabriel Genellina" wrote: > En Fri, 12 Dec 2008 04:50:06 -0200, stalex escribió: > > >> I want to build a new, requires total control, python interpreter. So > >> I implement my own version of Py_GetPath(), Py_GetPrefix(), > >> P

Re: Py_GetPath() C API in python 3

2008-12-11 Thread stalex
On 12月11日, 下午5時53分, stalex wrote: > Hi all, > > I want to build a new, requires total control, python interpreter. So > I implement my own version of Py_GetPath(), Py_GetPrefix(), > Py_GetExecPrefix() and Py_GetProgramFullPath(). When compiling, I > always get error mess

Py_GetPath() C API in python 3

2008-12-11 Thread stalex
Hi all, I want to build a new, requires total control, python interpreter. So I implement my own version of Py_GetPath(), Py_GetPrefix(), Py_GetExecPrefix() and Py_GetProgramFullPath(). When compiling, I always get error messages, for each API function, look like followings: /opt/python-3.0/lib/p

decorator and signal handler

2007-09-05 Thread stalex
Hi all, I wrote the following code since I want to try using a decorator to install signal handler: ## The test.py script # import os import time import signal def sigHandler(sid): def handler(f): signal.signal(sid, f) return f return handler class Test(o

ctypes help for "array of character pointers" as an output parameter

2007-06-23 Thread stalex
I'm wrapping a C function exists in a shared library. Its prototype looks like as follows int getFileNames(int aSize, char **names); The documentation says that the asSize is the number of entries to be returned and names is output array of character pointers of at least aSize elements. So, I