[C++-sig] char '\0' -> "\0" or ""?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Fri Sep 13 19:19:50 CEST 2002


Consider

char foo() { return '\0'; }

def("foo", foo);

Python with Boost.Python V1: foo() == ""
Python with Boost.Python V2: foo() == "\0"

Is this difference intentional?
I'd prefer the V1 result.
Opinions?

Thanks,
        Ralf


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com




More information about the Cplusplus-sig mailing list