On 3/30/07, drackett <[EMAIL PROTECTED]> wrote: > I see.. if there were more than one item in there, the last comma > isn't necessary anymore, correct?
Correct. The comma is needed on a single-element tuple so that Python can distinguish between something that's in parentheses for grouping (e.g., a mathematical expression where you'd want to group things to avoid operator precedence) and something that's in parentheses to be a tuple. And technically, the comma is what makes a tuple, not the parentheses. For example, this function returns a tuple: def return_tuple(): return 'foo', 'bar', 'baz' -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---