> seq = PySequence_Fast(data, "expected a sequence"); > if (!seq) > return NULL; here's some more information on the PySequence_Fast API: http://www.effbot.org/zone/python-capi-sequences.htm </F>