In both the Python Shell and BPython, I'm trying to make my output naturally break onto multiple lines as it does in, for example, the node interpreter.
Here's an example of what I mean:
# This is what is currently happening
# (I'm truncating output, but the response is actually a lot longer than this):
>>> response.dict
{'status': '200', 'accept-ranges': 'bytes', 'cache-control': 'max-age=604800'}
# Here's what I'd like to happen:
>>> response.dict
{'status': '200',
'accept-ranges': 'bytes',
'cache-control': 'max-age=604800'}
This would make reading things A LOT easier. Does anyone know whether or not it's possible to configure this in either BPython or just the plain shell? (Or honestly, any interpreter -- I'd switch to whatever lets me do it.)
Thanks a lot!
EDIT: Thanks for the answers everyone! I've come across Pretty Print before and have considered using it. I've also considered just using a for-loop to print everything on its own line. These aren't bad ideas, but I was hoping that I could get the interpreter to do it automatically.