[issue9752] MSVC Compiler warning in Python\import.c

Jon Anglin report at bugs.python.org
Wed Sep 8 14:24:40 CEST 2010

Jon Anglin <janglin at fortresgrand.com> added the comment:

Visual Studio ships with the source code for the CRT (\Program Files\Microsoft Visual Studio 9.0\VC\crt\src). I looked up _mkdir. It does just call CreateDirectory(path, NULL).  If no error occurs it returns zero. If an error occurs, it then converts the result of GetLastError to an appropriate errno code and returns -1.

Thus the following calls are equivalent:
    CreateDirectory(dirname, NULL);


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list