From d82ecf088710578b2413c2fe0558f9ef52862aa8 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 6 Nov 2000 05:10:14 +0000 Subject: [PATCH] added "set_attribute" member function to allow arbitrary Python objects to be added to an extension class. [SVN r8143] --- extclass.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extclass.h b/extclass.h index 6f330528..0840120f 100644 --- a/extclass.h +++ b/extclass.h @@ -74,7 +74,9 @@ class ExtensionClassBase : public Class { 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