• Charles Ferguson's avatar
    Allow class constants to be hidden; truncate long lists and dicts. · 74d7540f
    Charles Ferguson authored
    It is now possible to cause class constants - values which are present
    in an object which are the same as the class member of the same name -
    to be hidden in the output. This can reduce the size of the output by
    hiding information that can be obtained from the source itself.
    
    Long lists and dictionaries are another place where the output can
    become cluttered, and it is unlikely that the reader will want to check
    the values beyond basic members of a dictionary, so these values can
    be truncated as well - they would be truncated at the non-string limit
    anyhow. Because the truncation happens at the item level, as well
    as the total string level, individual items which are very long can
    be kept from swamping the output. Additionally, the enumeration only
    happens for sufficient items to meet the configuration, so the whole
    dictionary or list does not have its representation generated only
    to be truncated.
    74d7540f