walking a list
sadplanet at MAPS.chello.be
Sat Apr 24 13:11:22 CEST 2004
On Fri, 23 Apr 2004 13:21:43 -0500, Jeff Epler wrote:
> if isinstance(i, list): print_or_recurse(i)
great! thanks, i didn't know 'isinstance' existed.
what i did was the following:
if 'list' in str(type(list)):
it worked as well :)
One monk said to the other, "The fish has flopped out of the net! How will it
live?" The other said, "When you have gotten out of the net, I'll tell you."
More information about the Python-list