]> granicus.if.org Git - python/commit
Add the __getattr__ hook back. The rules are now:
authorGuido van Rossum <guido@python.org>
Fri, 21 Sep 2001 21:24:49 +0000 (21:24 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Sep 2001 21:24:49 +0000 (21:24 +0000)
commit19c1cd5b352e503c4585398d2533e5ae3bf4c189
tree4749110a9fdd7d5ac0c249b8d3d860676524d81e
parent56dd35bd44684d6d03db6fdfb2055898f0ef0b91
Add the __getattr__ hook back.  The rules are now:
- if __getattribute__ exists, it is called first;
  if it doesn't exists, PyObject_GenericGetAttr is called first.
- if the above raises AttributeError, and __getattr__ exists,
  it is called.
Lib/test/test_descr.py
Objects/typeobject.c