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 matrixise
Recipients cedricvanrompay, matrixise, xtreak
Date 2018-11-12.14:59:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542034768.23.0.788709270274.issue35216@psf.upfronthosting.co.za>
In-reply-to
Content
This error is specific to the C-API and not to Python,

here is an example.

#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>

int main(int argc, char **argv, char **environ) {
    int fd;
    fd = open("/tmp/toto/", O_CREAT);
    printf("file descriptor: %d\n", fd);
    printf(strerror(errno));
    close(fd);
    return 0;
}



./a.out
file descriptor: -1
Is a directory
History
Date User Action Args
2018-11-12 14:59:28matrixisesetrecipients: + matrixise, xtreak, cedricvanrompay
2018-11-12 14:59:28matrixisesetmessageid: <1542034768.23.0.788709270274.issue35216@psf.upfronthosting.co.za>
2018-11-12 14:59:28matrixiselinkissue35216 messages
2018-11-12 14:59:28matrixisecreate