Create Data Type

Bjorn Pettersen BPettersen at NAREX.com
Mon Feb 3 18:36:10 EST 2003


> From: Wezzy [mailto:Fabio at est.it] 
> 
> 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.

You do need a class, read
http://www.python.org/doc/current/tut/node11.html for details. Ask again
if you have specific uses in mind that are not answered there :-)

-- bjorn





More information about the Python-list mailing list