[Python-ideas] Python 3000 TIOBE -3%
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Feb 19 00:37:19 CET 2012
Ethan Furman wrote:
> I can see
> confusion again creeping in when somebody (like myself ;) sees a
> datatype which seemingly supports a mixture of unicode and raw bytes
> only to find out that 'uni_raw(...)[5] != 32' because a u' ' was
> returned and an integer (or raw byte) was expected at that location.
I wasn't intending that an int would be returned when you
index a non-char position. Indexing and slicing would always
return another mixed-string object.
--
Greg
More information about the Python-ideas
mailing list