[Python-bugs-list] [ python-Bugs-761267 ] Failure in comparing unicode string

SourceForge.net noreply@sourceforge.net
Sat, 28 Jun 2003 07:01:16 -0700


Bugs item #761267, was opened at 2003-06-26 18:02
Message generated for change (Comment added) made by lemburg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=761267&group_id=5470

Category: Unicode
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Brown (skbrown1975)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Failure in comparing unicode string

Initial Comment:
Received a SystemError: C:\Code\22
\Objects\longobject.c:231: bad argument to internal 
function

The code was "if items[0] == self.InfoShareName:" 
where items is an array of strings and 
self.InfoShareName is a unicode string declared by 
self.InfoShareName = unicode(ShareName)

----------------------------------------------------------------------

>Comment By: M.-A. Lemburg (lemburg)
Date: 2003-06-28 16:01

Message:
Logged In: YES 
user_id=38388

I can't see how your code could possibly cause the error
you indicate. Please provide an executable example with
real data.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-06-27 05:01

Message:
Logged In: YES 
user_id=33168

Can you attach a file which demonstrates this bug.  I cannot
reproduce it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=761267&group_id=5470