[Python-Dev] RELEASED Python 2.3.3 (release candidate 1) - custom Py_Initialize()

Jack Jansen Jack.Jansen at cwi.nl
Wed Dec 17 15:35:33 EST 2003


On 17-dec-03, at 17:42, Thomas Heller wrote:

> Jack Jansen <Jack.Jansen at cwi.nl> writes:
>
>> On 17-dec-03, at 12:32, Thomas Heller wrote:
>>> I would rather like a function like Py_InitializeEx(struct _init*),
>>> where struct _init would have components like PYTHONPATH, optimize, 
>>> and
>>> so on.
>>
>> You'd have to be very careful to design the struct in such a way that
>> you'd have good compatibility.
>
> Sure, but it can be done.
> The alternative would be a Py_InitializeN() call with many parameters.
> Would that be preferrable?

I'm unsure. I'm almost tempted to say I'd like to pass in a char ** and
use environ-style (we're not really worried about performance here).
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman




More information about the Python-Dev mailing list