Comment

Gerhard Häring

Of course since Python 2.2, you could just write: type(obj) in (list, tuple) ;)

Replies

Peter Bengtsson

indeed.