[Python-Dev] Suggested PySys_SetArgv use with a (char **) argv ?
Lisandro Dalcin
dalcinl at gmail.com
Wed Jul 8 00:18:51 CEST 2009
Sorry...
---------- Forwarded message ----------
From: Lisandro Dalcin <dalcinl at gmail.com>
Date: Tue, Jul 7, 2009 at 7:16 PM
Subject: Re: [Python-Dev] Suggested PySys_SetArgv use with a (char **) argv ?
To: "Martin v. Löwis" <martin at v.loewis.de>
On Tue, Jul 7, 2009 at 6:46 PM, "Martin v. Löwis"<martin at v.loewis.de> wrote:
>> Since many C applications take argv as a (char **) it seems reasonable
>> for python to keep a function for the C api that accepts a (char **)
>> argument for argv.
>
I've run in the same issue, and basically had to copy&paste from
Python sources...
>
> I'm not quite sure what you are suggesting: either that there is a
> function in the C API that accepts a (char**), or that PySys_SetArgv
> be that function.
>
> The latter alternative is out of question, as it breaks the Windows
> port of Python - there is simply no way of representing argv with
> char** in a meaningful way. It also breaks backwards compatibility.
>
Indeed...
> As for creating another function: please provide a patch to
> bugs.python.org. I believe this patch is *very* difficult to
> implement, unless the function can accept some severe limitations.
>
What about the Python lib exposing a public PyOS_char2wchar() ?
No idea how to write a Windows implementation, though..
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
More information about the Python-Dev
mailing list