Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2001-07-18 19:38:00

I am testing Boost.Python with Python 2.2a1.

Despite the pessimistic warnings at the end of
Boost.Python compiles without a warning (Linux gcc 2.95.2).

Some trivial fixes of the doctest tests were necessary.
These can be found in the boost_python_richcmp CVS branch.
When running the patched version of,
one problem remains:

Failure in example:
class MISubclass2(RealPythonClass, Bar):
   def new_method(self):
       print 'MISubclass2.new_method()'
   bound_function = RealPythonClass().other_first
from line #157 of comprehensive
Exception raised:
Traceback (most recent call last):
  File "/net/cci/rwgk/boost/libs/python/test/", line 490,
in _run_exam
    exec compile(source, "<string>", "single") in globs
  File "<string>", line 1, in ?
TypeError: PyClass_New: base must be a class

When applying this additional patch...

diff -r1.8.2.1
< >>> class MISubclass2(RealPythonClass, Bar):

>     >>> class MISubclass2(Bar, RealPythonClass): runs without a problem.
> We can even mulitply inherit from built-in Python classes,
> even if they are first in the list of bases
This does not seem to be the case with Python 2.2a1.
Is this an important problem?

Boost list run by bdawes at, gregod at, cpdaniel at, john at