This kind of printing should probably go in the objects themselves, but I was
too disgusted by the completion APIs to even begin to start extending the
code for that (it needs to be cleaned up first).
I was originally going to try to automatically include these in the docstring
using format, but they would have to be defined before the docstring for that
to work. But I think it's still useful to have these defined in the class.