On Wed, Feb 10, 2010 at 12:55 AM, Ian Wilson <[email protected]> wrote:
> I'm not quite sure if what I'm about to discuss is what you're asking
> so correct me if I'm wrong. A trailing comma will sometimes create a
> tuple depending on the context which doesn't have much to do with
> formencode.
A comma always creates a tuple AFAIK. I read that the essential part
of a tuple is the comma, not the parentheses. () for an empty tuple
is just there because you can't create an empty tuple otherwise.
(Well, now you can with ``tuple()`` but I'm not sure if that was
always true.)
The only places where "," doesn't create a tuple that I can think of
are function arguments and {} arguments.
--
Mike Orr <[email protected]>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.