3 ms·
That's just the thing: there is no sequence class in Python. There's only a sequence concept. A sequence is any object that implements a particular interface. S
by scott_s 18y ago
That's just the thing: there is no sequence class in Python. There's only a sequence concept. A sequence is any object that implements a particular interface. Strings aren't more basic than the concept of a sequence in Python; strings are a type of sequence.
See http://docs.python.org/library/stdtypes.html#iterator-types http://docs.python.org/library/stdtypes.html#iterator-types and http://docs.python.org/library/stdtypes.html#http://docs.python.org/library/stdtypes.html#sequence-types-str-unicode-list-tuple-buffer-xrange http://docs.python.org/library/stdtypes.html#http://docs.pyt...