Peter Hansen <peter at engcorp.com> wrote: >This is probably a better approach in several ways: > >def ensureList(thing): > try: > return list(thing) > except TypeError: > return [thing] > > >-Peter Except it doesn't work :-) >>> list('abc') ['a', 'b', 'c'] >>> -- Dale Strickland-Clark Riverhall Systems Ltd