I’ve always dealt with line wrapping problems on OSX and my terminal. Specifically, iPython. I finally looked for a solution, and the problem was not having python readline installed.
My iPython looked like this:
After a simple google search, a user named minrk on github pointed out that iPython actually complains about “leopard libedit detected”, meaning iPython could not find the readline module.
Yes, a better message is in order….
Anyways, sudo easy_install readline and you’re done.
sudo easy_install readline
Magic.

