]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #25590: Make rlcompleter only call getattr() once per attribute
authorMartin Panter <vadmium+py@gmail.com>
Fri, 13 Nov 2015 22:47:00 +0000 (22:47 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Fri, 13 Nov 2015 22:47:00 +0000 (22:47 +0000)
commitef2b2f437e7160ea68d8087df43c069fa6534fb0
treec915d98d3993bab4a27ce6669dbf4835263dc5f7
parentc0fdd825c28127734bfd1ba615805b9e2696f103
Issue #25590: Make rlcompleter only call getattr() once per attribute

Previously it was called another time via hasattr(), and both calls were
made once for dir(f) and again for dir(f.__class__).  This includes a
backport of changing from a list to a set from revision 4dbb315fe667.
Lib/rlcompleter.py
Lib/test/test_rlcompleter.py
Misc/NEWS