Python - text wrap and fill

in «tip» by Michael Beard
Tags: , , , , ,

Both are quite handy and I did NOT realize that they existed. Just import textwrap, give a constraint, and away you go. Quite nice. Need to use this in several scripts.

Found a nice implementation that works well at How to get Linux console window width in Python by Harco Kuppens.

Works super well. I have not put it to good use yet, but will soon.