[C++-sig] Can't add attribute to function

Neal Becker ndbecker2 at gmail.com
Tue Feb 22 16:30:12 CET 2011


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?



More information about the Cplusplus-sig mailing list