Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2000-11-06 19:45:09


I have been able to compile and test py_cpp_20001106 with Python 2.0:

# Compaq C++ V6.2-024 for Digital UNIX V5.0 (Rev. 910)
#
# Alternatives:
# a. Python 1.5.2 was installed without any customizations.
# b. Python 2.0 was installed with a few simple customizations:
# ./configure --prefix=/usr/local/Python-2.0
# Edit config.h: insert #ifndef __cplusplus, #endif
# around #define inline __inline
# make; make install
# boost_all.zip vers. 1.18.2 was unpacked using unzip -aa.
# cast.hpp was replaced by version "19 Oct 00".
# STLport-4.1b3 was unpacked using unzip -aa and not modified.

The py_cpp source code does not need to be changed. However, because
some Python error messages have changed, test_extclass.py needs to be
updated. A patch is attached.

Note that the problem with the inline define is an unresolved Python
bug:
http://sourceforge.net/bugs/?
func=detailbug&bug_id=119851&group_id=5470

Ralf

--- test_extclass.py Mon Nov 6 16:25:36 2000
+++ test_extclass.py.orig Mon Nov 6 00:25:50 2000
@@ -620,11 +620,10 @@
>>> c = CallbackTest()
>>> c.testCallback(1)
     2
- >>> try: c.testCallback('foo')
- ... except TypeError, err:
- ... assert re.match(
- ... '(illegal argument type for built-in operation)|(an integer
is required)', str(err))
- ... else: print 'no exception'
+ >>> c.testCallback('foo')
+ Traceback (innermost last):
+ File "<stdin>", line 1, in ?
+ TypeError: illegal argument type for built-in operation
>>> c.callback(1)
     2
>>> c.callback('foo')
@@ -643,11 +642,10 @@
     -1
>>> r.callback('foo')
     'foo 1'
- >>> try: r.testCallback('foo')
- ... except TypeError, err:
- ... assert re.match(
- ... '(illegal argument type for built-in operation)|(an integer
is required)', str(err))
- ... else: print 'no exception'
+ >>> r.testCallback('foo')
+ Traceback (innermost last):
+ File "<stdin>", line 1, in ?
+ TypeError: illegal argument type for built-in operation
>>> r.testCallback(1)
     -1
>>> testCallback(r, 1)
  


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk