A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-January/011582.html below:

[Python-Dev] [Patch #103154] Cygwin Check Import Case Patch

[Python-Dev] [Patch #103154] Cygwin Check Import Case Patch [Python-Dev] [Patch #103154] Cygwin Check Import Case PatchGuido van Rossum guido@python.org
Fri, 12 Jan 2001 12:47:46 -0500
>     Guido> Summary: Cygwin Check Import Case Patch
>     ...
>     Guido> But I believe the solution is that the TERMIOS module should be
>     Guido> renamed.
> 
> Isn't this a general problem?  As I recall, the convention when generating
> Python modules from C header files is to simply convert the base name to
> upper case and replace ".h" with ".py" (errno.h -> ERRNO.py).  From h2py.py:
> 
>     # Without filename arguments, acts as a filter.
>     # If one or more filenames are given, output is written to corresponding
>     # filenames in the local directory, translated to all uppercase, with
>     # the extension replaced by ".py".
> 
> Perhaps the convention should be instead to append "d" or "data" to the base
> name (errno.h -> errnodata.py).

An even better solution is to get rid of those generated headers and
incorporate the desired symbols directly in the C extension modules.
That's happened for errno and socket, for example; maybe it's time to
do that for termios, too!

--Guido van Rossum (home page: http://www.python.org/~guido/)



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