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

Nathaniel Smith njs at pobox.com
Fri Feb 13 18:41:44 CET 2015


On 13 Feb 2015 02:09, "Victor Stinner" <victor.stinner at gmail.com> wrote:
>
> A alternative is to add a new _scandir.c module to host the new C
> code, and share some code with posixmodule.c: remove "static" keyword
> from required C functions (functions to convert Windows attributes to
> a os.stat_result object).

Hopefully not too annoying question from an outsider: has cpython's build
system added the necessary bits to do this on a safe, portable,
non-symbol-namespace polluting way? E.g. using -fvisibility=hidden on Linux?

(I'm partially wondering because until very recently numpy was built by
concatenating all the different c files together and compiling that,
because that was the only portable way to let different files share access
to symbols without also exporting those symbols publicly from the resulting
module shared objects. And numpy supports a lot fewer platforms than
cpython proper...)

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150213/200871ad/attachment.html>


More information about the Python-Dev mailing list