]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
* accessobject.c (ownercheck): allow a base class access to protected
authorGuido van Rossum <guido@python.org>
Sun, 11 Jul 1993 19:55:34 +0000 (19:55 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 11 Jul 1993 19:55:34 +0000 (19:55 +0000)
commited18fdc9fcd4a0c5d592ed4ee04a8337b60d8752
tree3909bcabf4d81f3ffb1f288f4f0619b1fa54f511
parent697e7abbc8f5d8188c09181e308827a45eacfc14
* 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.
Include/object.h
Objects/accessobject.c
Objects/object.c