>>>>> "FLD" == Fred L Drake, <fdrake@acm.org> writes: FLD> for t in ListType, TupleType, ...: FLD> if isinstance(obj, t): FLD> break FLD> else: FLD> raise Exception('no match!') Or: try: raise obj except (ListType, TupleType): pass except: raise TypeError, ... with-apologies-to-tim-ly y'rs, Jeremy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4