This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, draghuram, eric.araujo, ggenellina, giampaolo.rodola, gvanrossum, ijmorlan, terry.reedy, ysj.ray, zooko
Date 2010-07-25.00:15:24
SpamBayes Score 0.0062896996
Marked as misclassified No
Message-id <1280016927.22.0.361992214199.issue9299@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-07-25 00:15:27Arfreversetrecipients: + Arfrever, gvanrossum, terry.reedy, zooko, ggenellina, draghuram, giampaolo.rodola, ijmorlan, eric.araujo, ysj.ray
2010-07-25 00:15:27Arfreversetmessageid: <1280016927.22.0.361992214199.issue9299@psf.upfronthosting.co.za>
2010-07-25 00:15:25Arfreverlinkissue9299 messages
2010-07-25 00:15:24Arfrevercreate