[Python-3000] basestring removal, file and co_filename (original) (raw)

Christian Heimes lists at cheimes.de
Fri Oct 12 05:32:44 CEST 2007


Jeffrey Yasskin wrote:

On 10/11/07, Christian Heimes <lists at cheimes.de> wrote:

if (mangled == "utf8") FYI, this is always going to be false. It compares the pointer values, rather than the strings.

Doh! I've done too much Python programming in the past. I forgot that I've to use strcmp(s1, s2) == 0 in order to compare two strings in C.

Thanks pal!

Christian



More information about the Python-3000 mailing list