Re: [PyCrust] FW: underscore kills command completion
Brought to you by:
pobrien
From: Neil H. <ne...@sc...> - 2002-02-08 23:28:14
|
Patrick: > Will this fix work if I keep the sort order the way it was - > > attributes.sort(lambda x, y: cmp(x.lower(), y.lower())) No, as you are using an order that is not consistent with Scintilla. > I kind of prefer this as it seems more "pythonic" to have the underscore > attributes at the head of the list. Actually, I'm more partial to that in > the namespace viewer, which I just changed to sort this way. I guess a case > could be made that underscore attributes are less likely to be useful when > called in the shell, and therefore should be at the end of the list. So it > isn't a huge deal, I'm just curious. Alternate sorting orders could be options if anyone cares enough to implement them, but sorting orders should always be consistent. One aspect that still isn't handled is that strings that differ only in case should have a fixed ordering. As it is, I just consider it a limitation that Scintilla does not support lists with items that differ only in case. Neil |