[Tutor] IDLE vs. Python Command Line

Glen Wheeler gew75 at hotmail.com
Wed Jun 23 18:55:34 EDT 2004


  Hi Dragonfirebane,

  I don't use IDLE to code with, so I can't explain the output you see
there.  The command line is correct.

  HTH,
  Glen

----- Original Message ----- 
From: Dragonfirebane at aol.com
To: tutor at python.org
Sent: Friday, June 18, 2004 12:04 PM
Subject: [Tutor] IDLE vs. Python Command Line


when i type:

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

in IDLE, i get:

##
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\x83\x8a\x8c\x8e\x9a\x9
c\x9e\x9f\xaa\xb5\xba\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xc
d\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe
1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf
4\xf5\xf6\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



_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list