how to find the type of a list element?

lobozc at my-deja.com lobozc at my-deja.com
Sun Nov 19 01:10:22 EST 2000


a list like [1,2,3,[4,5],6,7] is passed to a procedure
how can a procedure find whether a list element is a 'scalar' or a list?

I know I could, say, try to use exceptions for that - but I hope there
is a better way.




Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list