Closed beloglazov closed 11 years ago
Yes.
from collections import Sequence
isinstance(set(), Sequence) # => False
See here for what Python means by "sequence" and others: http://docs.python.org/2/library/collections.html#collections-abstract-base-classes
Basically, elements in a sequence have an index.
I see, thanks for a quick reply :)
No problem! have a good day.
Hi, I've just faced a problem that
seq
fails to match a set:Expected a sequence, got 'set'. checking: seq for value: Instance of set: set(['\xa3\x9a\x05\x10\xa7l\xc61\x8e', '\xd... [clip]
Is it by design?