How to set output format?

There was a discussion in this thread about this topic.
Currently you could just use print(a, a.type(), a.size()).