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 ronaldoussoren
Recipients
Date 2004-12-22.09:51:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In Mac/Modules/file/_Filemodule.c UTCDateTime values are 
converted using these functions:
 
static int
UTCDateTime_Convert(PyObject *v, UTCDateTime *ptr)
{
        return PyArg_Parse(v, "(HlH)", &ptr->highSeconds, &ptr-
>lowSeconds, &ptr->fraction);
}

static PyObject *
UTCDateTime_New(UTCDateTime *ptr)
{
        return Py_BuildValue("(HlH)", ptr->highSeconds, ptr-
>lowSeconds, ptr->fraction);
}


Shouldn't the format string be "(HLH)" in both cases? The struct 
definition of UTCDateTime contains unsigned times (UInt16, UInt32 
and UInt16).

The same problem is present in Python 2.3
History
Date User Action Args
2008-01-20 09:57:21adminlinkissue1089624 messages
2008-01-20 09:57:21admincreate