List problems in C code ported to Python

Michael Hoffman cam.ac.uk at mh391.invalid
Mon Jan 17 02:01:40 CET 2005


Paul McGuire wrote:

> So "A" == 'a' is true in Python, not true in C.

 >>> "A" == 'a'
False

I think you meant:

 >>> "A" == "A"
True
-- 
Michael Hoffman



More information about the Python-list mailing list