cpython/Objects
Guido van Rossum e7b8ecf196 Major cleanup operation: whenever there's a call that looks for an
optional attribute, only clear the exception when the internal getattr
operation raised AttributeError.  Many places in this file already had
that policy; but just as many didn't, and there didn't seem to be any
rhyme or reason to it.  Be consistently cautious.

Question: should I backport this?  On the one hand it's a bugfix.  On
the other hand it's a change in behavior.  Certain forms of buggy or
just weird code would work in the past but raise an exception under
the new rules; e.g. if you define a __getattr__ method that raises a
non-AttributeError exception.
2002-06-13 21:42:04 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Close SF bug 563740. complex() now finds __complex__() in new style classes. 2002-06-06 15:45:38 +00:00
boolobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
bufferobject.c Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols. 2002-03-29 03:29:08 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c Major cleanup operation: whenever there's a call that looks for an 2002-06-13 21:42:04 +00:00
cobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
complexobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
descrobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
dictobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
enumobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
fileobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
floatobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
frameobject.c Fix SF bug #505315: Make free and cell vars show up consistently in locals(). 2002-04-20 04:46:55 +00:00
funcobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
intobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
iterobject.c SF 560736. Optimize list iteration by filling the tp_iter slot. 2002-05-31 21:40:38 +00:00
listobject.c SF #561244 Micro optimizations 2002-06-13 21:11:11 +00:00
longobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
methodobject.c Introduce two new flag bits that can be set in a PyMethodDef method 2002-03-28 05:33:33 +00:00
moduleobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
object.c SF # 561244 Micro optimizations 2002-06-13 21:32:44 +00:00
obmalloc.c PyObject_Realloc(): If a small block is shrinking, bite the expense of 2002-05-02 20:19:34 +00:00
rangeobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
sliceobject.c Fix for problem reported by Neal Norwitz. Tighten up calculation of 2002-06-11 13:38:42 +00:00
stringobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
structseq.c Remove PyMalloc_New and PyMalloc_Del. 2002-04-12 03:05:37 +00:00
tupleobject.c SF #561244 Micro optimizations 2002-06-13 21:11:11 +00:00
typeobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c Fix typo in exception message 2002-06-13 21:25:17 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
weakrefobject.c Remove weakref free list. This has the side effect of fixing a memory 2002-03-27 15:18:21 +00:00
xxobject.c Use function instead of macro spellings for PyObject_memorystuff. 2002-05-23 15:51:20 +00:00