Comments (3)
I can't try out openstack-compute because of this change. Is it possible to add
printt back?
Original comment by [email protected]
on 17 Jun 2012 at 5:24
from prettytable.
@George.V.Reilly: Thanks for pointing this out, you are right that an update to
the tutorials is long overdue. I'll try to get this fixed up a bit today.
@tonybr777: Sorry, but I decided to remove printt for good reason: as long as
there exists a method to fetch a string of a table (and there always should be
such a method, so that people can e.g. save tables to files) then having a
dedicated printing method is entirely redundant since Python has inbuilt
printing functions that can be used to print the string. Printt was also an
obstacle to Python3 compatibility, since the inbuilt printing function is
different in 2.x and 3.x. Getting rid of printt improved and simplified the
overall API, and adding it back would be a backward step.
If you need to try out some software that makes use of printt, your best
options are to either install PrettyTable 0.5 (with e.g. "easy_install
PrettyTable==0.5") and just use that, or to update the software to no longer
use printt. It looks like openstack-compute only uses printt in two places, in
the file openstack.compute/openstack/compute/shell.py, so this should be very
easy. Just replace "pt.printt(**kwargs)" with "print pt.get_string(**kwargs)"
for 2.x or "print(pt.get_string(**kwargs)" for 3.x.
Original comment by [email protected]
on 17 Jun 2012 at 6:45
- Changed state: Accepted
from prettytable.
Today, after releasing 0.7, I have deleted the old Tutorial0.6 wiki page, and
updated the Tutorial wiki page. The Tutorial page now has no references to
printt, and none of the examples do things "the old way". So finally it should
be impossible for anybody to get confused in the future. Therefore I'm closing
this issue.
Original comment by [email protected]
on 17 Feb 2013 at 7:54
- Changed state: Fixed
from prettytable.
Related Issues (20)
- the data on "how to display chinese character"
- how to display "ambiguous" width in chinese character?
- table.min_width is broken when using PLAIN_COLUMNS style HOT 2
- Field alignment error when using "blessings" module HOT 1
- Adding colors to column values messes up the spacing HOT 2
- Setting float_format in **kwargs does not actually affect output - confusing behavior HOT 1
- Permissions are incorrect HOT 1
- Add date formatting for datetime etc instances HOT 3
- In get_string, end is eval before sortby
- HTML output is lacking borders, alignment
- Cannot print unicode characters, for example: degree symbol °
- Pandas DataFrame Table Factory HOT 3
- Upload new version to pypi
- xterm reset escape sequence not filtered HOT 2
- Support large tables in output HOT 1
- Prettytable 0.7.2 does not handle rowspan correctly
- Creating a PrettyTable inside a for. HOT 1
- Project Future and Plans HOT 5
- Export project to Github (or other git hosting project) HOT 2
- Stretching columns when the data are longer than the header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettytable.