From abrahams at mediaone.net Sat Mar 10 00:58:17 2001 From: abrahams at mediaone.net (David Abrahams) Date: Fri, 9 Mar 2001 18:58:17 -0500 Subject: [C++-SIG] [ANN] Boost.Python - C++ binding library updated Message-ID: <02d301c0a8f4$d46db4e0$0500a8c0@dragonsys.com> Revamped documentation and examples Better Python 2.0 compatibility New checks for pickling pitfalls thanks to Ralf Grosse-Kunstleve NULL-Pointers and smart pointers are automatically converted to/from None See www.boost.org/libs/python/doc/index.html for documentation The boost libraries can be downloaded at www.boost.org From Karl.Bellve at umassmed.edu Fri Mar 16 15:45:57 2001 From: Karl.Bellve at umassmed.edu (Karl Bellve) Date: Fri, 16 Mar 2001 09:45:57 -0500 Subject: [C++-SIG] C++ and PyMethodDef Message-ID: <3AB22725.49BBA479@umassmed.edu> Hopefully this is the best place to ask this question. I have a class that will use Python and Numpy. There could be several instances of this class, each using and initializing Python. The problem I am having is with PyMethoDef which passes a table of methods and their descriptions to Python. As far as I can tell, this can't be a static structure. Anyone build a PyMethodDef structure inside a C++ class so the appropiate function pointers point to the appropiate instance of the class? Cheers, Karl Bellve From bscott at Ridgeway-Sys.com Mon Mar 19 11:33:09 2001 From: bscott at Ridgeway-Sys.com (Barry Scott) Date: Mon, 19 Mar 2001 10:33:09 -0000 Subject: [C++-SIG] C++ and PyMethodDef Message-ID: <00533D13955AD411AF3800A0C9B426390EC22D@RIDGEWAY> Look at the Python CXX code for an example. THe sources are available on sourceforge. Barry -----Original Message----- From: Karl Bellve [mailto:Karl.Bellve at umassmed.edu] Sent: 16 March 2001 14:46 To: Python C++ Subject: [C++-SIG] C++ and PyMethodDef Hopefully this is the best place to ask this question. I have a class that will use Python and Numpy. There could be several instances of this class, each using and initializing Python. The problem I am having is with PyMethoDef which passes a table of methods and their descriptions to Python. As far as I can tell, this can't be a static structure. Anyone build a PyMethodDef structure inside a C++ class so the appropiate function pointers point to the appropiate instance of the class? Cheers, Karl Bellve _______________________________________________ C++-SIG maillist - C++-SIG at python.org http://mail.python.org/mailman/listinfo/c++-sig From ej at ee.duke.edu Sat Mar 31 14:29:48 2001 From: ej at ee.duke.edu (eric jones) Date: Sat, 31 Mar 2001 04:29:48 -0800 Subject: [C++-SIG] CXX compiler errors on Linux Message-ID: <043c01c0b9de$46fa2210$650a1098@vagabond> Hello, Is CXX still under active development? I noticed the CVS has been quiet for a while. I grabbed the latest CVS and tried to compile the Demo on RH6.2 with egcs-2.91.66. It failed with the error message listed below. Is there a gcc compiler that compiles CXX correctly, or does anyone have a patches to CXX that work with 2.91.66? thanks, eric Here's the error mesage: [root at n0 Demo]# python setup.py build running build running build_py warning: build_py: package init file './__init__.py' not found (or not a regular file) warning: build_py: package init file './__init__.py' not found (or not a regular file) running build_ext building 'CXX.example' extension creating build creating build/temp.linux-i686-2.1 gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.1 -c example.cxx -o build/temp.linux-i686-2.1/example.o /usr/local/include/python2.1/CXX/Objects.hxx: In method `unsigned int ::Py::String::capacity() const': In file included from example.cxx:14: /usr/local/include/python2.1/CXX/Objects.hxx:1241: Internal compiler error. /usr/local/include/python2.1/CXX/Objects.hxx:1241: Please submit a full bug report to `egcs-bugs at egcs.cygnus.com'. /usr/local/include/python2.1/CXX/Objects.hxx:1241: See for details. error: command 'gcc' failed with exit status 1 From dubois at users.sourceforge.net Sat Mar 31 19:29:12 2001 From: dubois at users.sourceforge.net (Paul F. Dubois) Date: Sat, 31 Mar 2001 09:29:12 -0800 Subject: [C++-SIG] CXX compiler errors on Linux In-Reply-To: <043c01c0b9de$46fa2210$650a1098@vagabond> Message-ID: You have to get gcc-2.95.3. -----Original Message----- From: c++-sig-admin at python.org [mailto:c++-sig-admin at python.org]On Behalf Of eric jones Sent: Saturday, March 31, 2001 4:30 AM To: c++-sig at python.org Subject: [C++-SIG] CXX compiler errors on Linux Hello, Is CXX still under active development? I noticed the CVS has been quiet for a while. I grabbed the latest CVS and tried to compile the Demo on RH6.2 with egcs-2.91.66. It failed with the error message listed below. Is there a gcc compiler that compiles CXX correctly, or does anyone have a patches to CXX that work with 2.91.66? thanks, eric Here's the error mesage: [root at n0 Demo]# python setup.py build running build running build_py warning: build_py: package init file './__init__.py' not found (or not a regular file) warning: build_py: package init file './__init__.py' not found (or not a regular file) running build_ext building 'CXX.example' extension creating build creating build/temp.linux-i686-2.1 gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.1 -c example.cxx -o build/temp.linux-i686-2.1/example.o /usr/local/include/python2.1/CXX/Objects.hxx: In method `unsigned int ::Py::String::capacity() const': In file included from example.cxx:14: /usr/local/include/python2.1/CXX/Objects.hxx:1241: Internal compiler error. /usr/local/include/python2.1/CXX/Objects.hxx:1241: Please submit a full bug report to `egcs-bugs at egcs.cygnus.com'. /usr/local/include/python2.1/CXX/Objects.hxx:1241: See for details. error: command 'gcc' failed with exit status 1 _______________________________________________ C++-SIG maillist - C++-SIG at python.org http://mail.python.org/mailman/listinfo/c++-sig