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 <1214942817.95.0.11274740533.issue3240@psf.upfronthosting.co.za>
In-reply-to
Content
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
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> u'a' in string.letters
True


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 ?
History
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: <1214942817.95.0.11274740533.issue3240@psf.upfronthosting.co.za>
2008-07-01 20:06:56rupolelinkissue3240 messages
2008-07-01 20:06:55rupolecreate