Arfrever Frehtes Taifersar Arahesis <arfrever....@gmail.com> added the comment:
I suggest to raise exception when target regular file exists: try: mkdir(name, mode) except OSError as e: if not (exist_ok and e.errno == errno.EEXIST and path.isdir(name)): raise ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9299> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com