Hi Travis, Sure this is one way of doing this but the whole point of my question is that I want tab-completion to produce a discoverable list of possible representations -- and tab-completion can't work for function arguments. Of course the documentation for a "representation" method could list the possible choices but I would like a more direct interface than this.
I mentioned namedtuple() in the question. Another option, that is already used quite a bit, is the "catalog" mechanism behind groups.<tab> and codes.<tab>, but this creates a static list of methods so it's not ideal. Andrew On Monday, 10 November 2014 11:38:22 UTC+11, Travis Scrimshaw wrote: > > I would think the closest thing we have to this currently is having > "representation" accept a string input which redirects to the appropriate > class. AFAIK, we have any "official" convention about this. IMO, the single > method approach is best. > > Best, > Travis > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.