[Python-Dev] C API for the bool type?

Bo Thorsen bo at thorsen-consulting.dk
Mon Mar 21 10:54:49 CET 2005

Hi people,

If this is not the correct place to post this problem, I apologize. In 
that case, please be gentle and point me to a better mailing list.

I'm coding a text editor in Qt that uses Python for macros. The problem I 
have is that want to use the bool type introduced in 2.3, but I can't see 
how to do this. On http://docs.python.org/api/arg-parsing.html the format 
units are described, but no bool is there.

I guess there are two possibilities. Either the documentation is not 
updated with the new format unit, or it doesn't exist.

If it doesn't exist, I guess I should use the int format unit and call the 
http://docs.python.org/api/boolObjects.html functions to see if this is 
actually a bool or not?

I hope you can help me with this question. Please CC me with answers, 
since I am not a member of this list.


Bo Thorsen.


Thorsen Consulting ApS - Qt programming services

More information about the Python-Dev mailing list