[Tutor] IDLE vs. Python Command Line

Dragonfirebane at aol.com Dragonfirebane at aol.com
Thu Jun 17 22:04:46 EDT 2004


when i type:

##
>>>import string
>>>string.letters
##

in IDLE, i get:

##
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\x83\x8a\x8c\x8e\x9a\x9c\
x9e\x9f\xaa\xb5\xba\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xc
e\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\
xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf
6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff'
##

but when i do it on the Python Command Line, i get:

##
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
##

is this a flaw in IDLE or the Command Line? Which is more accurate? Since one 
of my programs uses string.letters, it is important for me to know.

Thanks in advance,
Orri

P.S.:

IDLE:
>>> print string.letters
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸ
ªµºÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ

Command Line:
>>>print string.letters
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040617/4bec5d48/attachment.html


More information about the Tutor mailing list