A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-January/019231.html below:

[Python-Dev] Unicode strings as filenames

[Python-Dev] Unicode strings as filenames [Python-Dev] Unicode strings as filenamesMark Hammond mhammond@skippinet.com.au
Mon, 7 Jan 2002 13:01:46 +1100
> It may be necessary to call different routines depending on whether
> you have a byte or a character string; this is not something a getargs
> converter can do. It also may be that, depending on which system
> routine you call, the system will *return* either wide or narrow
> strings to you. Every time you find another use of file names, Marc
> suggests you put that into fileapi.c.

I'm sure that is not what Marc meant.  I think he simply meant a conversion
function that would return the filename as either byte or Unicode.  Get your
arg from PyArg_ParseTuple, and convert it with this function.

Have I missed it all these years, or should we define a PyArg_ParseTuple
format that takes a "void **" and a function pointer to a type conversion
function?

Mark.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4