Implicit lists
Martin Maney
maney at pobox.com
Tue Feb 4 11:08:20 EST 2003
More information about the Python-list mailing list
Tue Feb 4 11:08:20 EST 2003
- Previous message (by thread): Implicit lists
- Next message (by thread): Implicit lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alex Martelli <aleax at aleax.it> wrote: > Maybe you mean to pass a singleton tuple, in which case you > need to use the following syntax: > > foo(('this string available',)) > > The easy-to-miss trailing comma is what denotes the singleton > tuple -- unpleasant, but I know of no better alternatives. Yes, that's what I was thinking, but the fingers didn't execute it. Another reason to prefer the list in this context. After long enough that I think of myself as quite comfortable with Python, that comma is one thing I still glitch up relatively often.
- Previous message (by thread): Implicit lists
- Next message (by thread): Implicit lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list