From: Fuzzyman <fuz...@vo...> - 2005-12-13 15:53:32
|
Nicola Larosa wrote: >>The alternative would be to indicate list values by surrounding with >>square brackets : >> >> checkname(default="[ 'val 1', 'val 2', 'val 3']") >> >> > >What about using a pseudo-constructor? > > checkname(default=list('val 1', 'val 2', 'val 3')) > > That's a good idea. Saves syntax confusion. Makes the regular expression harder of course. :-) Fuzzyman http://www.voidspace.org.uk/python/index.shtml |