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 mrabarnett
Recipients ezio.melotti, mrabarnett
Date 2008-11-15.17:37:44
SpamBayes Score 1.0310129e-07
Marked as misclassified No
Message-id <1226770666.07.0.601144946755.issue4328@psf.upfronthosting.co.za>
In-reply-to
Content
The left operand is a bytestring and the right operand is a unicode
string, so it makes sense that it raises an exception, although it would
be clearer if it said "'in <string>' requires unicode string as left
operand".

I agree that if it's going to do implicit decoding so that it'll accept
'f' in u'foo' then it should probably raise a UnicodeDecodeError when
that fails.

If it's reporting a /TypeError/ then it should also reject 'f' in u'foo'.
History
Date User Action Args
2008-11-15 17:37:46mrabarnettsetrecipients: + mrabarnett, ezio.melotti
2008-11-15 17:37:46mrabarnettsetmessageid: <1226770666.07.0.601144946755.issue4328@psf.upfronthosting.co.za>
2008-11-15 17:37:45mrabarnettlinkissue4328 messages
2008-11-15 17:37:44mrabarnettcreate