Create Data Type

Irmen de Jong irmen at
Tue Feb 4 00:39:02 CET 2003

Wezzy wrote:
> Hi i'm a newbie. I have a simple question : does Python support the creation
> of user-defined data types ? i don't need a class, just a simple struct
> like C struct.

A 'struct' is just a class with only public members (and no methods).
So what is wrong with a class?


More information about the Python-list mailing list