Hi PrettyTable users,
Today I have released PrettyTable 0.7.2! The new release is available
to download from the "Downloads" tab of the project home page and has
also been uploaded on PyPI so you can install it using easy_install,
pip or other tools.
This is a very minor change from 0.7.1, adding a new option,
"print_empty". This, as the name suggests, controls what happens when
you call get_string() on a table with no data in it. Early versions of
PrettyTable printed an empty table frame like this:
+-----+-----+-----+
| Foo | Bar | Baz |
+-----+-----+-----+
+-----+-----+-----+
But this behaviour changed in later versions to simply return an empty
string. The new option lets the user choose which behaviour they
prefer. If print_empty is True (which is the default), an empty
frame will be returned. If it is False, an empty string will be
returned.
Happy hacking!
Luke
--
Luke Maurits <
lu...@maurits.id.au>
http://www.luke.maurits.id.au
CompCogSci | Crypto | Maths | Python | Unix