##// END OF EJS Templates
apply Matthew Neeley's patch to sort the attribute names properly when the dupes have been removed
vivainio -
Show More
@@ -241,7 +241,8 b' class Completer:'
241 if may_have_dupes:
241 if may_have_dupes:
242 # eliminate possible duplicates, as some traits may also
242 # eliminate possible duplicates, as some traits may also
243 # appear as normal attributes in the dir() call.
243 # appear as normal attributes in the dir() call.
244 words = set(words)
244 words = list(set(words))
245 words.sort()
245
246
246 # filter out non-string attributes which may be stuffed by dir() calls
247 # filter out non-string attributes which may be stuffed by dir() calls
247 # and poor coding in third-party modules
248 # and poor coding in third-party modules
@@ -1,3 +1,12 b''
1 2007-07-09 Ville Vainio <vivainio@gmail.com>
2
3 * completer.py: Applied Matthew Neeley's patch:
4 Dynamic attributes from trait_names and _getAttributeNames are added
5 to the list of tab completions, but when this happens, the attribute
6 list is turned into a set, so the attributes are unordered when
7 printed, which makes it hard to find the right completion. This patch
8 turns this set back into a list and sort it.
9
1 2007-07-06 Fernando Perez <Fernando.Perez@colorado.edu>
10 2007-07-06 Fernando Perez <Fernando.Perez@colorado.edu>
2
11
3 * IPython/OInspect.py (Inspector.pinfo): Add support for new-style
12 * IPython/OInspect.py (Inspector.pinfo): Add support for new-style
General Comments 0
You need to be logged in to leave comments. Login now