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 vstinner
Recipients larry, vstinner
Date 2012-08-03.12:13:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343995984.36.0.909130129312.issue15547@psf.upfronthosting.co.za>
In-reply-to
Content
posix_truncate() accepts a file descriptor, so os.ftruncate() can be removed from Python 3.3.

    memset(&path, 0, sizeof(path));
    path.function_name = "truncate";
#ifdef HAVE_FTRUNCATE
    path.allow_fd = 1;
#endif
    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&O&:truncate", keywords,
                                     path_converter, &path,
                                     _parse_off_t, &length))
        return NULL;
History
Date User Action Args
2012-08-03 12:13:04vstinnersetrecipients: + vstinner, larry
2012-08-03 12:13:04vstinnersetmessageid: <1343995984.36.0.909130129312.issue15547@psf.upfronthosting.co.za>
2012-08-03 12:13:03vstinnerlinkissue15547 messages
2012-08-03 12:13:02vstinnercreate