<p dir="ltr">On 13 Feb 2015 02:09, "Victor Stinner" <<a href="mailto:victor.stinner@gmail.com">victor.stinner@gmail.com</a>> wrote:<br>
><br>
> A alternative is to add a new _scandir.c module to host the new C<br>
> code, and share some code with posixmodule.c: remove "static" keyword<br>
> from required C functions (functions to convert Windows attributes to<br>
> a os.stat_result object).</p>
<p dir="ltr">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?</p>
<p dir="ltr">(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...)</p>
<p dir="ltr">-n</p>