> if I start a tuple with ( ('john","adams"))

Also, this is the same as ('john', 'adams')... it is just a tuple and
not a tuple within a tuple
( ('john', 'adams'), )  (note the comma .. something of an idiom ..
parenthesis do not create the tuple but rather the comma) would be a
tuple containing exactly 1 2-tuple.  Tuples being immutable means that
they can not be sorted or modified, appended and members cannot be
deleted.  They are more suited toward holding some static data b/c
they can not be modified in any way.

Your += actually creates a new tuple.

PEOPLE += (('john','doe'),) does "work" however.  But, I think that
when you get the hang of lists you will find that they are really
powerful.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to