[ python-Bugs-1089643 ] Carbon.File.FSCatalogInfo.createDate implementation

SourceForge.net noreply at sourceforge.net
Wed Dec 22 11:21:43 CET 2004


Bugs item #1089643, was opened at 2004-12-22 11:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1089643&group_id=5470

Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronald Oussoren (ronaldoussoren)
Assigned to: Jack Jansen (jackjansen)
Summary: Carbon.File.FSCatalogInfo.createDate implementation

Initial Comment:
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


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1089643&group_id=5470


More information about the Python-bugs-list mailing list