forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a modest attempt at improving the situation for issue JuliaLang#1759. I've added slightly enhanced `summary`s with information about the number of k/v pairs for Associative and Key/ValueIterator types. I'm still slightly confused by all the different methods used for show, but this PR keeps the old behavior (mostly) as `showcompact`. I then added new functionality in `show` and `showlimited`, using newlines as delimiters between key/value pairs. When output is limited, values are truncated at newlines or the TTY screen edge and a limited number of pairs are printed. The key and value iterators no longer spit out entire dictionaries when shown. They instead show a limited {} array of the keys and values.
- Loading branch information
Showing
1 changed file
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters