summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-07-11 19:55:34 (GMT)
committerGuido van Rossum <guido@python.org>1993-07-11 19:55:34 (GMT)
commited18fdc9fcd4a0c5d592ed4ee04a8337b60d8752 (patch)
tree3909bcabf4d81f3ffb1f288f4f0619b1fa54f511 /Include/object.h
parent697e7abbc8f5d8188c09181e308827a45eacfc14 (diff)
downloadcpython-ed18fdc9fcd4a0c5d592ed4ee04a8337b60d8752.zip
cpython-ed18fdc9fcd4a0c5d592ed4ee04a8337b60d8752.tar.gz
cpython-ed18fdc9fcd4a0c5d592ed4ee04a8337b60d8752.tar.bz2
* accessobject.c (ownercheck): allow a base class access to protected
objects of its derived classes; allow anything that has an attribute named "__privileged__" access to anything. * object.[ch]: added hasattr() -- test whether getattr() will succeed.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index ff02bea..0aed1d0 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -203,6 +203,7 @@ extern int printobject PROTO((object *, FILE *, int));
extern object * reprobject PROTO((object *));
extern int cmpobject PROTO((object *, object *));
extern object *getattr PROTO((object *, char *));
+extern int hasattr PROTO((object *, char *));
extern object *getattro PROTO((object *, object *));
extern int setattro PROTO((object *, object *, object *));
extern long hashobject PROTO((object *));