Flatten... or How to determine sequenceability?

Fredrik Lundh fredrik at pythonware.com
Fri May 25 15:47:42 EDT 2001


Alex Martelli wrote:
> I'm almost tempted to propose a tiny extension module, since
> the C-API level *DOES* expose an "is-a-sequence" test...:

or you could import the "operator" module, and use
the operator.isSequenceType(obj) predicate.

Cheers /F





More information about the Python-list mailing list