[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

Ray.Allen report at bugs.python.org
Wed Jul 21 10:00:43 CEST 2010

Ray.Allen <ysj.ray at gmail.com> added the comment:

I found in Modules/posixmodule.c that:

#if (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__)) && !defined(__QNX__)
#define INITFUNC PyInit_nt
#define MODNAME "nt"

#elif defined(PYOS_OS2)
#define INITFUNC PyInit_os2
#define MODNAME "os2"

#define INITFUNC PyInit_posix
#define MODNAME "posix"

I also found the "ce" module in Python Windows CE (http://pythonce.sourceforge.net/) source: Modules/posixmodule.c, seeing http://docs.python.org/py3k/using/windows.html. This means the "nt", "os2", "ce", "posix" module are all implemented in Modules/posixmodule.c.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list