what is the python equivelant of this?

jschmitt at vmlabs.com jschmitt at vmlabs.com
Thu Oct 12 13:31:21 EDT 2000


typedef struct
{
    int   field1;
    char* field2;
} RECORD;

RECORD records[] =
{
    { 10, "gumby" },
    { 20, "barny" }
    /* etc */
};

or how about

RECORD* recordarray = malloc( sizeof(RECORD) * 10 );
memset( recordarray0, sizeof(RECORD) * 10 );


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list