Python module to format text into columns?

Aahz Maruch aahz at
Tue Nov 16 17:55:55 CET 1999

In article <80rcj3$n23$1 at>,  <hamish_lawson at> wrote:
>but I'm inclined to provide (at least initially) just the direct
>   formatter.setcolumn(column=1, margin=4, width=16, align=left)
>   formatter.setcolumn(column=2, margin=2, width=4, align=left)
>   formatter.setcolumn(column=3, margin=2, width=6, align=right)

Instead of explicitly naming the columns, I'd suggest passing in a list
of dicts (dicts so that you can set global defaults).  That means that
for three columns all taking in the global defaults, you'd pass in

   formatter.setcolumns ( [ {}, {}, {} ] )
                      --- Aahz (

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6  (if you want to know, do some research)

More information about the Python-list mailing list