I can add attributes to instances of classes created by boost::python, but not to boost::python functions: limiter.delay = 0 AttributeError: 'Boost.Python.function' object has no attribute 'delay' Any ideas?