TUPLE & LIST

John Roth newsgroups at jhrothjr.com
Thu Jan 15 12:48:20 EST 2004


"Yomanium Yoth Taripoät II" <Yomanium at Yomanium.com> wrote in message
news:%7xNb.55$Uw3.50 at newsr2.u-net.net...
> HI,
>
> 1) what are the differences between list and tuple?
> 2) how to concatenate tuple and list? no method, no opérator?
> 3) im looking the manual, and can't add value in my tuple, when it
> already created :/
>   how to do it?

Tuples are intended to be a quick way of passing
around several heterogenous values. If you find
yourself wanting to do anything to a tuple other than
creating it and accessing members, then you're
trying to do too much. Use a list if the values
are of the same type, or create an object to
hold whatever it is.

John Roth



> thx.
>
>
>
>





More information about the Python-list mailing list