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

David Abrahams dave at boost-consulting.com
Sun Jan 18 16:39:03 CET 2004


Daniel Holth <dholth at fastmail.fm> writes:

> 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))

This patch will break 2.2 compatibility and possibly some of the
Boost.Python regression tests if we take it as-is.

Please try again, though; I'd like to accept a patch for this!

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list