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/2008-May/079673.html below:

[Python-Dev] Addition of "pyprocessing" module to standard lib.

[Python-Dev] Addition of "pyprocessing" module to standard lib. [Python-Dev] Addition of "pyprocessing" module to standard lib.Thomas Heller theller at ctypes.org
Wed May 21 21:42:36 CEST 2008
Martin v. Löwis schrieb:
>> As said before, PyOpenGL is an example of an extension that moved from C
>> code to Python/ctypes, luckily we don't use it, but what if the
>> maintainers of MySQL-Python or cx_Oracle decide to move to ctypes.
>> Having the ctypes extension in the stdlib doesn't imply it runs on any
>> platform where python runs. Extension writers should keep this in mind
>> when they decide to use ctypes. They should document, that their
>> extension depends on ctypes and therefore doesn't run on platforms where
>> ctypes doesn't work.
> 
> Plus, even if ctypes works, the code might be incorrect, because they
> had been assuming structure layouts and symbolic constants that have
> just a different definition on some other platform, causing the
> extension module to crash.
> 
> Writing portable ctypes modules is really hard - significantly harder
> than writing portable C code (although writing non-portable ctypes
> code is apparently easier than writing non-portable C code).

I would say that writing portable C code is hard as well, aren't there
just more tools that help?

Thomas

More information about the Python-Dev mailing list

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