[Python-Dev] Python 2.7: only Visual Studio 2008?

Christian Heimes lists at cheimes.de
Tue Aug 21 17:32:01 CEST 2012


Am 21.08.2012 17:01, schrieb martin at v.loewis.de:
> In the specific case, this isn't actually the limiting factor.
> Instead, it's binary compatibility: binaries compiled with VS 2010
> are incompatible (in some cases) with those compiled with VS 2008.
> So if the python.org binaries were released as compiler outputs
> from VS 2010, exising extensions modules might crash Python. Therefore,
> we cannot switch.

Compatibility issues may lead to other strange bugs, too. IIRC each
msvcrt has its own thread local storage and therefore its own errno
handling. An extension compiled with VS 2010 won't be able to use the
PyErr_SetFromErrno*() function correctly. That's much harder to debug
than a FILE pointer mismatch because it usually doesn't cause a segfault.

Christian



More information about the Python-Dev mailing list