[issue1568] PATCH: Armin's attribute lookup caching for 3.0
Neil Toronto
report at bugs.python.org
Thu Jan 17 03:02:32 CET 2008
Neil Toronto added the comment:
Well horse pucky. I plum forgot about deletes.
I've attached an update that properly clears the cache entry for the
deleted attribute for all non-shadowing subclasses. (It was a small
change.) Undef'ing ATTRCACHE_SETATTR_INVALIDATES should work now.
Re: different from 2.6: It takes advantage of the lack of "classic"
classes. That makes some things a lot easier. Also, I was looking into
updating cache entries to see if it would be faster than invalidating
all the entries for a type, among other improvements. FWIW, updating
cache entries is a little faster on my box.
Also: This may have the same problem with test_ctypes'
test_incomplete.py as #1700288 did, though I haven't seen any ctypes
tests fail.
Added file: http://bugs.python.org/file9189/python30-attrcache-2.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1568>
__________________________________
More information about the Python-bugs-list
mailing list