Fix listing of subcommands for "ipython profile" and "ipython history".
The previous code (likely going back to Py2) would print
Must specify one of: dict_keys(['create', 'list', 'locate'])
This PR fixes it to
Must specify one of: 'create', 'list', 'locate'.
Push caching to parent frame, and cache more frames. (#14418)
I hope in deep code this makes things faster.
Complement to #14386, but a bit of a blind fix.