This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rupole
Recipients georg.brandl, loewis, rupole
Date 2008-07-01.20:06:55
SpamBayes Score 2.097779e-06
Marked as misclassified No
Message-id <>
It introduces high characters that cause comparisons to fail under IDLE 
that succeed from the normal python prompt:

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit 
(Intel)] on
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> u'a' in string.letters

IDLE 1.2.2      
>>> import string
>>> u'a' in string.letters

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    u'a' in string.letters
UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 
52: ordinal not in range(128)

Or am I misunderstanding how the locale works with string comparisons ?
Date User Action Args
2008-07-01 20:06:58rupolesetspambayes_score: 2.09778e-06 -> 2.097779e-06
recipients: + rupole, loewis, georg.brandl
2008-07-01 20:06:57rupolesetspambayes_score: 2.09778e-06 -> 2.09778e-06
messageid: <>
2008-07-01 20:06:56rupolelinkissue3240 messages
2008-07-01 20:06:55rupolecreate