2
0
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:
Dave Abrahams
2000-11-06 05:10:14 +00:00
parent fa9a7d2f32
commit d82ecf0887

View File

@@ -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