On 2012-07-18, at 20:31 , Devin Jeanpierre wrote:
On Wed, Jul 18, 2012 at 2:16 PM, Masklinn <masklinn@masklinn.net> wrote:
It's both (with the caveat that, in Python, a character is just a string of length 1).
That's playing with words, especially comparing strings with Python 3 binaries which *do* actually have a separate "character" type (reified to an integer).
No it isn't. Strings are adherents to the sequence protocol. The Python datatype reference echoes what I said, nearly exactly.
This has no relevance to my messages, I have not claimed anywhere that strings weren't sequences.
So Python strings don't have reified characters, a string's item and a slice of size 1 are essentially identical which is pretty much unique to them (as far as my knowledge of Python's sequences go).
Nothing about that feature makes them not-sequences; instead, it makes them a rather special kind of sequence.
I'm not sure why you're saying that. Again, I have never once claimed they were not sequences (quite the opposite in fact). Why the strawmanning?