[Python-ideas] A possible transition plan to bytes-based iteration and indexing for binary data
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Jun 16 02:03:56 CEST 2014
Gregory P. Smith wrote:
> In order for this to work you would need to have your __future__
> statement alter the behavior of *all* [] and iteration done within the
> file to conditionally take a code path that does something different iff
> the type being operated on is determined at runtime to be bytes.
It *could* be done. When the future statement is in effect,
different bytecodes could be generated for indexing and
iteration that look out for bytes and work differently.
--
Greg
More information about the Python-ideas
mailing list