Comments (2)
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.
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)
- 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.