Create Data Type

Irmen de Jong irmen at NOSPAM-REMOVETHIS-xs4all.nl
Mon Feb 3 18:39:02 EST 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?

Irmen





More information about the Python-list mailing list