Changes between Version 2 and Version 3 of Ticket #13605, comment 2


Ignore:
Timestamp:
10/25/12 11:08:33 (9 years ago)
Author:
andrew.mathas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13605, comment 2

    v2 v3  
    5959    return optionable_method(self, '_repr_', option_name='display')
    6060}}}
    61 where `option_name` defaults to name of the method but which we want to override in this case...or not? This would allow global options to be used uniformly across all classes. When necessary, passing arguments to the optionable methods would be straightforward too.
     61where `option_name` defaults to name of the method but which we want to override in this case. (Perhaps it is subjective that this is better?) This would allow global options to be used uniformly across all classes. If necessary, passing arguments to the optionable methods would be straightforward too.
    6262
    6363As a final note, can there please be an honest ''compact'' variant of `_repr_` which returns a string with no spaces and is as short as possible but still readable? I want this for use inside code like the above which uses partitions to index objects. Of course, such code could do this itself but it seems more sensible to have this done inside `Partition_class`. I have several different examples/contexts where I want to do this and presumably other people will too?