Giter VIP home page Giter VIP logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 30, 2024
Hi there,

Thanks for the suggestion.  Can I ask you to describe what your use case is 
that has made you want this feature?

This is something I have thought about previously, more than once, but I 
usually end up shying away from actually implementing it.  There are a few 
reasons for this.  One, I am keen to try to keep PrettyTable from expanding 
into a "kitchen sink" module, and to instead keep it focused on doing just what 
it needs to do to get its job done.  Two, there is quite some complexity 
involved.  For example, going from a string back to a PrettyTable object, 
there's no way to know if a table entry of "4" was generated from a string "4" 
or an integer int(4), so one can never guarantee that the reverse mapping is 
exactly right.  Also, there will be pathalogical cases that are hard to parse 
(like when some table entry contains an instance of the horizontal or junction 
character).  Basically, writing something which works with 100% reliability 
would probably be as big a project as PrettyTable in the first place.  Finally, 
I have never been able to think of a good reason why someone would truly need 
this.  If the tables you want to "reverse" were produced previously by your 
application, then it would be a much better idea to, rather than saving the 
ASCII tables, just save the data that was used to build them in the first place.

However, I am totally willing to listen to reason.  If you have a compelling 
use case where you really have to be able to do this and there's no other way 
to solve your problem, then I will consider implementing it.

Original comment by [email protected] on 19 Mar 2013 at 2:19

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from prettytable.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 30, 2024
I am closing this issue due the high effort involved in impelementing it and 
the lack of compelling arguments for why it might be needed, after a 
sufficiently long wait.  If anybody wants to put forth a good argument, feel 
free to comment or open a new issue.

Original comment by [email protected] on 5 Oct 2013 at 10:31

  • Changed state: WontFix

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.