[C++-sig] boolean patch for builtin_converters.hpp

Daniel Holth dholth at fastmail.fm
Sun Jan 18 02:08:07 CET 2004


Here's something for fans of Python's relatively new True and False
objects.  Now my module's bool ::f() returns True or False inside
Python.

- Daniel Holth

RCS file: /boost/boost/boost/python/converter/builtin_converters.hpp,v

diff -r1.22 builtin_converters.hpp
95c95
< BOOST_PYTHON_TO_PYTHON_BY_VALUE(bool, ::PyInt_FromLong(x))
---
> BOOST_PYTHON_TO_PYTHON_BY_VALUE(bool, ::PyBool_FromLong(x))





More information about the Cplusplus-sig mailing list