mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
added "set_attribute" member function to allow arbitrary Python objects to be added to an extension class.
[SVN r8143]
This commit is contained in:
@@ -74,7 +74,9 @@ class ExtensionClassBase : public Class<ExtensionInstance>
|
||||
{
|
||||
public:
|
||||
ExtensionClassBase(const char* name);
|
||||
|
||||
void set_attribute(const char* name, PyObject* x);
|
||||
void set_attribute(const char* name, Ptr x);
|
||||
|
||||
public:
|
||||
// the purpose of try_class_conversions() and its related functions
|
||||
// is explained in extclass.cpp
|
||||
|
||||
Reference in New Issue
Block a user