[Tutor] data structures in python?
orbitz
orbitz at ezabel.com
Tue Nov 30 01:58:49 CET 2004
I think you are confused. Generally data structures are synonymous with
abstract data types. But what you are really asking about, I think, are
structs in C. Just use a class to hold your data, or a dict. The python
tutorial easily available from the python website covers how to make and
use both.
Jeff Peery wrote:
> hello, this makes three questions today... phew!
>
> is there something similar in python to a data structure in C? Would
> this be like creating a new module, or a new object? I have an object
> that is associated with several different variables and I want to
> arrange my data as if it were a structure so I can call
> object1.variable1 or object1.variable2 or object1000.variable1[5] etc.
> it would be much easier to keep track indexing and whatnot this way.
> thanks.
>
> Jeff
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Tutor maillist - Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>
More information about the Tutor
mailing list