rm -f *.o rm -f simple.so rm -f example.so rm -f pycxx_iter.so g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o simple.o Demo/Python2/simple.cxx ./CXX/Python2/Objects.hxx: In member function ‘Py::List Py::MapBase::keys() const [with T = Py::Object]’: Demo/Python2/simple.cxx:28: instantiated from here ./CXX/Python2/Objects.hxx:2798: warning: deprecated conversion from string constant to ‘char*’ g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o cxxsupport.o Src/cxxsupport.cxx g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o cxx_extensions.o Src/cxx_extensions.cxx gcc -arch x86_64 -c -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o cxxextensions.o Src/cxxextensions.c g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o IndirectPythonInterface.o Src/IndirectPythonInterface.cxx g++ -arch x86_64 -bundle -g -u _PyMac_Error -F/Library/Frameworks -framework System /System/Library/Frameworks/Python.framework/Versions/2.6/Python -o simple.so simple.o cxxsupport.o cxx_extensions.o cxxextensions.o IndirectPythonInterface.o PYTHONPATH=. /usr/bin/Python Demo/Python2/test_simple.py --- module func --- func Called with 0 normal arguments. and with 0 keyword arguments: func Called with 2 normal arguments. and with 0 keyword arguments: func Called with 2 normal arguments. and with 2 keyword arguments: name value --- old_style_class func --- old_style_class_func_noargs Called. old_style_class_func_varargs Called with 0 normal arguments. old_style_class_func_varargs Called with 1 normal arguments. old_style_class_func_keyword Called with 0 normal arguments. and with 0 keyword arguments: old_style_class_func_keyword Called with 0 normal arguments. and with 2 keyword arguments: name value old_style_class_func_keyword Called with 2 normal arguments. and with 0 keyword arguments: old_style_class_func_keyword Called with 2 normal arguments. and with 2 keyword arguments: name value --- new_style_class func --- new_style_class c'tor Called with 0 normal arguments. and with 0 keyword arguments: ['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'new_style_class_func_keyword', 'new_style_class_func_noargs', 'new_style_class_func_varargs'] new_style_class_func_noargs Called. value ref count 1 new_style_class_func_varargs Called with 0 normal arguments. new_style_class_func_varargs Called with 1 normal arguments. new_style_class_func_keyword Called with 0 normal arguments. and with 0 keyword arguments: new_style_class_func_keyword Called with 0 normal arguments. and with 2 keyword arguments: name value new_style_class_func_keyword Called with 2 normal arguments. and with 0 keyword arguments: new_style_class_func_keyword Called with 2 normal arguments. and with 2 keyword arguments: name value ~new_style_class. --- Derived func --- new_style_class c'tor Called with 0 normal arguments. and with 0 keyword arguments: ['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'derived_func', 'new_style_class_func_keyword', 'new_style_class_func_noargs', 'new_style_class_func_varargs'] derived_func new_style_class_func_noargs Called. value ref count 1 derived new_style_class_func_noargs new_style_class_func_varargs Called with 0 normal arguments. new_style_class_func_varargs Called with 1 normal arguments. new_style_class_func_keyword Called with 0 normal arguments. and with 0 keyword arguments: new_style_class_func_keyword Called with 0 normal arguments. and with 2 keyword arguments: name value new_style_class_func_keyword Called with 2 normal arguments. and with 0 keyword arguments: new_style_class_func_keyword Called with 2 normal arguments. and with 2 keyword arguments: name value default value a string ~new_style_class. g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o pycxx_iter.o Demo/Python2/pycxx_iter.cxx g++ -arch x86_64 -bundle -g -u _PyMac_Error -F/Library/Frameworks -framework System /System/Library/Frameworks/Python.framework/Versions/2.6/Python -o pycxx_iter.so pycxx_iter.o cxxsupport.o cxx_extensions.o cxxextensions.o IndirectPythonInterface.o PYTHONPATH=. /usr/bin/Python Demo/Python2/test_pycxx_iter.py 5 IterT count(6) 6 IterT count(7) 7 IterT count(8) refcount of IT: 2 7 6 5 refcount of IT: 2 g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o example.o Demo/Python2/example.cxx Demo/Python2/example.cxx: In member function ‘Py::Object example_module::ex_test(const Py::Tuple&)’: Demo/Python2/example.cxx:633: warning: deprecated conversion from string constant to ‘char*’ Demo/Python2/example.cxx:633: warning: deprecated conversion from string constant to ‘char*’ ./CXX/Python2/Objects.hxx: In member function ‘Py::List Py::MapBase::values() const [with T = Py::Object]’: Demo/Python2/example.cxx:315: instantiated from here ./CXX/Python2/Objects.hxx:2803: warning: deprecated conversion from string constant to ‘char*’ ./CXX/Python2/Objects.hxx: In member function ‘Py::List Py::MapBase::keys() const [with T = Py::Object]’: Demo/Python2/example.cxx:329: instantiated from here ./CXX/Python2/Objects.hxx:2798: warning: deprecated conversion from string constant to ‘char*’ g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o range.o Demo/Python2/range.cxx g++ -arch x86_64 -c -g -fPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. -o rangetest.o Demo/Python2/rangetest.cxx g++ -arch x86_64 -bundle -g -u _PyMac_Error -F/Library/Frameworks -framework System /System/Library/Frameworks/Python.framework/Versions/2.6/Python -o example.so example.o range.o rangetest.o cxxsupport.o cxx_extensions.o cxxextensions.o IndirectPythonInterface.o PYTHONPATH=. /usr/bin/Python Demo/Python2/test_example.py range object created 0x10024bb10 range object destroyed 0x10024bb10 Example Test starting Trying to convert a NULL to an Py::Int Correctly caught Py::Exception value: PyCXX: Error creating object of type N2Py6ObjectE from (nil) Py::Exception traceback: None Trying to convert a Py::String to an Py::Int Correctly caught Py::Exception value: PyCXX: Error creating object of type N2Py3IntE from 'this should fail' Py::Exception traceback: None OK: T1: True OK: T2: True OK: T3: True OK: T4: True OK: T5: True OK: F1: False OK: F2: False OK: F3: False OK: F4: False OK: F5: False Py::Boolean: ok Numbers: ok Py::String: ok Py::List: ok Py::Dict: ok Py::Tuple: ok dict value 'gorf' dict value 'gorf' dict value 'blah' dict value 'blah' STL test: ok range object created 0x100224480 range object created 0x1002244b0 range object created 0x100223990 range object destroyed 0x1002244b0 Extension object test: ok. Module test ok.