Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.114 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.00; 'output': 0.05; 'lines,': 0.07; 'spec': 0.09; 'bryan': 0.16; 'elsewhere.': 0.16; 'optionally': 0.16; 'subject:Lines': 0.16; 'wrote:': 0.18; 'user.': 0.19; 'meant': 0.20; 'portion': 0.22; 'header:User- Agent:1': 0.23; 'scroll': 0.24; 'sort': 0.25; 'script': 0.25; 'equivalent': 0.26; 'primary': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'function': 0.29; 'words': 0.29; 'lines': 0.31; 'serve': 0.31; 'file': 0.32; 'text': 0.33; 'says': 0.33; 'skip:u 20': 0.35; 'done.': 0.35; 'editor': 0.35; 'hundreds': 0.35; 'too': 0.37; 'step': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; "you're": 0.61; "you'll": 0.62; 'finish': 0.65; 'within': 0.65; 'received:74.208': 0.68; 'subject': 0.69; 'limit': 0.70; 'analyzed': 0.84; 'extreme,': 0.84; 'hard.': 0.84; 'much,': 0.84; 'received:74.208.4.194': 0.84; 'joel': 0.91; 'responses': 0.93 Date: Tue, 25 Jun 2013 22:27:20 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Limit Lines of Output References: <0cb638ec-a4bd-4a45-b98c-a7c76996bab7@googlegroups.com> <842bc651-0bed-45df-9a29-2049279f4434@googlegroups.com> <2d9f3f9a-6fee-42db-ad6e-acc7eaf7c195@googlegroups.com> In-Reply-To: <2d9f3f9a-6fee-42db-ad6e-acc7eaf7c195@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:kAxIrh9Onw8ZVFEMdRLOMgb72pnQ9cK3IEXQGq3oeYp mqEPKRNWtB22rnIo9/RmXQsDOjq0JcdewjiFaJ7ml2KWPeasui 34XGuZUikXstrCfzocmYXf6HN5gx2QkYH9sHwNLljMaRSmMWft XDcacvgBaOwPmiM3BoUYOhmb09y3x/gtJ/YAa2z7KXyAyOBQvR nCZuN+g+gycs2OuwyN6TK+Be5Zla/jLPGwe1lWsbAFPk2c/VZl a+7ao8lJhGT3JkvvvxZVz6/6Ik38tKPFpSafm7QfL4UWH7veiO Kljt99nKRfhBWTXRag1YWHLcMs2HgWpfAtvrQ0FEZM577fq3s/ mvHp/TiUc04oxa0Ha1Q8= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372213655 news.xs4all.nl 15882 [2001:888:2000:d::a6]:37257 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49224 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