Giter VIP home page Giter VIP logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.