[issue9752] MSVC Compiler warning in Python\import.c
report at bugs.python.org
Wed Sep 8 07:27:43 CEST 2010
Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:
As far as I can tell, _mkdir(name) is equivalent to CreateDirectoryA(name, NULL), except one uses errno and the other uses GetLastErrno. It is definitely possible that there's something I don't know, though, and the documentation doesn't explicitly state that they're equivalent.
With regard to the mode parameter, I noticed that the implementation of os.mkdir for Windows doesn't do anything with it, which probably means we can not worry about the mode parameter here as well?
os.mkdir's implementation just calls CreateDirectory(path, NULL). The code is in a #ifdef MS_WINDOWS in posix_mkdir() in Modules/posixmodule.c.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list