py3: change of getattr -> getattro
issue 0000995
This commit is contained in:
@@ -222,13 +222,13 @@ public:
|
||||
* If you want to implement attributes in your class, reimplement
|
||||
* this method.
|
||||
* You have to call the method of the base class.
|
||||
* Note: if you reimplement _gettattr() in a inheriting class you
|
||||
* Note: if you reimplement _gettattro() in a inheriting class you
|
||||
* need to call the method of the base class! Otherwise even the
|
||||
* methods of the object will disappear!
|
||||
*/
|
||||
virtual PyObject *_getattr(char *attr);
|
||||
/// static wrapper for pythons _getattr()
|
||||
static PyObject *__getattr(PyObject * PyObj, char *attr);
|
||||
virtual PyObject *_getattro(PyObject *attro);
|
||||
/// static wrapper for pythons _getattro()
|
||||
static PyObject *__getattro(PyObject * PyObj, PyObject *attro);
|
||||
|
||||
/** SetAttribute implementation
|
||||
* This method implements the setting of object attributes.
|
||||
@@ -236,9 +236,9 @@ public:
|
||||
* this method.
|
||||
* You have to call the method of the base class.
|
||||
*/
|
||||
virtual int _setattr(char *attr, PyObject *value); // _setattr method
|
||||
/// static wrapper for pythons _setattr(). // This should be the entry in Type.
|
||||
static int __setattr(PyObject *PyObj, char *attr, PyObject *value);
|
||||
virtual int _setattro(PyObject *attro, PyObject *value); // _setattro method
|
||||
/// static wrapper for pythons _setattro(). // This should be the entry in Type.
|
||||
static int __setattro(PyObject *PyObj, PyObject *attro, PyObject *value);
|
||||
|
||||
/** _repr method
|
||||
* Override this method to return a string object with some
|
||||
|
||||
Reference in New Issue
Block a user