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/2004-January/041840.html below:

[Python-Dev] The os module, unix and win32

[Python-Dev] The os module, unix and win32Thomas Heller theller at python.net
Fri Jan 9 07:32:08 EST 2004
[Dave]

>> Another possibility: we'd get a lot more mileage out of simply
>> adding ctypes to the standard install. That would solve the
>> immediate popen problem, let us get rid of _winreg entirely (and
>> replace it with a pure Python version), and make future Win32
>> problems easier to solve.

[Guido]
> I don't know that a Python version of _winreg using ctypes would be
> preferable over a C version.

Since there is a C version, there's no need to code it in Python again.

> I'd expect it to be slower, less readable than the C version, and more
> susceptible to the possibility of causing segfaults.

Slower: yes, but I don't know how much.
Less readable: no, more readable.
Susceptible to segfaults: If written correctly, it should be bullet
proof - exactly the same as a C version.

> That doesn't mean I don't think ctypes is a good idea -- just that I
> don't think applying it to _winreg would be useful.

Cool.

Should this be a Windows only version, or cross-platform?

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