diff options
author | Guido van Rossum <guido@python.org> | 1993-07-11 19:55:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-07-11 19:55:34 (GMT) |
commit | ed18fdc9fcd4a0c5d592ed4ee04a8337b60d8752 (patch) | |
tree | 3909bcabf4d81f3ffb1f288f4f0619b1fa54f511 /Include/object.h | |
parent | 697e7abbc8f5d8188c09181e308827a45eacfc14 (diff) | |
download | cpython-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.h | 1 |
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 *)); |