Experiences/guidance on teaching Python as a first programming language
Chris Angelico
rosuav at gmail.com
Thu Dec 12 05:28:35 EST 2013
On Thu, Dec 12, 2013 at 8:17 PM, <wxjmfauth at gmail.com> wrote:
> Windows, Py2.(7), ascii. It is not a secret Python uses
> ascii for the representation.
Actually no, it doesn't.
Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit
(Intel)] on win32
>>> s = "abcd\xa9"
>>> print(s)
abcd©
The copyright symbol is not in ASCII. Are you suggesting that Python
uses a 7-bit internal representation of this data? Because a quick
squiz at the source code will prove that wrong. This is not ASCII.
ChrisA
More information about the Python-list
mailing list