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/2015-February/138222.html below:

[Python-Dev] PEP 471 (scandir): Poll to choose the implementation (full C or C+Python)

[Python-Dev] PEP 471 (scandir): Poll to choose the implementation (full C or C+Python) [Python-Dev] PEP 471 (scandir): Poll to choose the implementation (full C or C+Python)Antoine Pitrou solipsis at pitrou.net
Fri Feb 13 14:44:08 CET 2015
On Fri, 13 Feb 2015 08:35:00 -0500
Ben Hoyt <benhoyt at gmail.com> wrote:
> 
> If we go ahead with the all C approach, I'd be in favour of
> refactoring a little and putting the new scandir code into a separate
> C file. There are two ways to do this: a) sticking with a single
> Python module and just referencing the non-static functions in
> scandir.c from posixmodule.c, or b) sharing some functions but making
> _scandir.c its own importable module. Option (a) is somewhat simpler
> as there's not module setup stuff twice, but I don't know if there's a
> precedent for that way of doing things.

The _io module already does things that way (the (a) option, I mean).

Regards

Antoine.
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