Message224852
Example:
>>> import rlcompleter
>>> completer = rlcompleter.Completer()
>>> class A(object):
... foo = None
>>> class B(A):
... pass
>>> b = B()
>>> print([completer.complete("b.foo", i) for i in range(4)])
['b.foo', 'b.foo', 'b.foo', None]
I would expect the completions to be unique.
This happens because the possible words to match are put into a list.
A possible fix is putting them into a set instead.
Patch attached. |
|
Date |
User |
Action |
Args |
2014-08-05 16:13:15 | donlorenzo | set | recipients:
+ donlorenzo |
2014-08-05 16:13:15 | donlorenzo | set | messageid: <1407255195.5.0.870338576239.issue22143@psf.upfronthosting.co.za> |
2014-08-05 16:13:15 | donlorenzo | link | issue22143 messages |
2014-08-05 16:13:15 | donlorenzo | create | |
|