Limit Lines of Output
Dave Angel
davea at davea.name
Tue Jun 25 22:27:20 EDT 2013
On 06/25/2013 04:37 PM, Bryan Britten wrote:
> Joel -
>
> I don't want to send it to a text file because it's just meant to serve as a reference for the user to get an idea of what words are mentioned. The words being analyzed are responses to a survey questions and the primary function of this script is to serve as a text analytics program. Exporting the output to a text file would just be an unnecessary/undesirable step for the user.
>
Your subject says you want to limit the lines of output. So after 25
lines, quit the program. Not too hard.
At the other extreme, your user wants to be able to scroll up or down
within the hundreds of lines, seeing 25 at a time, and wants to be able
to search for particular substrings, optionally with case-insensitivity,
and wants to be able to sort them by some criteria, or copy/paste some
portion elsewhere.
Write a spec that limits what you want, or you'll never finish the
project. And accept that if you want too much, you'll end up writing
the equivalent of a text editor before you're done.
--
DaveA
More information about the Python-list
mailing list