[Tutor] Question About Structs

Hector A. Paterno ps0@igmp.com.ar
Fri, 22 Feb 2002 13:39:35 -0300

Hi, Im recently programming in python and I'v one question :

Who is the best form in python to replace what in c is called struct ?

For example in C I have this struct :

struct monitor {
 char *model;
 int number;
My best was to replace this with a DIC :
monitor = {'model':'', 'number':}

This is correct ? There are a best way to do a struct like this in python ?
Tnks !
Pd: Python doesn't has the case statment ?
Tnks Again.
Best Regards Hector.
Fortune :
<Joey> gorgo: *lol*
<gorgo> joey: what's so funny? :)
<Culus> shh, joey is losing all sanity from lack of sleep
<Culus> 'yes joey, very funny'
<Culus> Humor him :>
	-- Seen on #Debian