What exactly is a python variable?

Chris Angelico rosuav at gmail.com
Thu Nov 17 19:58:08 EST 2016


On Fri, Nov 18, 2016 at 11:47 AM, Steve D'Aprano
<steve+python at pearwood.info> wrote:
> You may have missed the bit where I said "In the most recent versions".
> Python 2.7 will be interpreting the string "y=x+1" as compiled byte-code,
> and disassembling it into junk.
>

Heh. That's a side benefit of the Py3 bytes/unicode split - you can
instantly distinguish between program text and compiled bytes. :)

ChrisA



More information about the Python-list mailing list