Re: Limit Lines of Output

2013-06-27 Thread Joshua Landau
On 27 June 2013 00:57, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 26 Jun 2013 10:09:13 -0700, rusi wrote: On Wednesday, June 26, 2013 8:54:56 PM UTC+5:30, Joshua Landau wrote: On 25 June 2013 22:48, Gene Heskett wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau

Re: Limit Lines of Output

2013-06-26 Thread Gene Heskett
On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine: On 25 June 2013 21:22, Bryan Britten britten.br...@gmail.com wrote: Ah, I always forget to mention my OS on these forums. I'm running Windows. Supposedly, Windows has more

Re: Limit Lines of Output

2013-06-26 Thread Alister
On Tue, 25 Jun 2013 14:39:30 -0600, Ian Kelly wrote: On Tue, Jun 25, 2013 at 2:31 PM, Joshua Landau joshua.landau...@gmail.com wrote: On 25 June 2013 21:22, Bryan Britten britten.br...@gmail.com wrote: Ah, I always forget to mention my OS on these forums. I'm running Windows. Supposedly,

Re: Limit Lines of Output

2013-06-26 Thread Joshua Landau
On 25 June 2013 22:48, Gene Heskett ghesk...@wdtv.com wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine: I did not. -- http://mail.python.org/mailman/listinfo/python-list

Re: Limit Lines of Output

2013-06-26 Thread Chris Angelico
On Thu, Jun 27, 2013 at 1:24 AM, Joshua Landau joshua.landau...@gmail.com wrote: On 25 June 2013 22:48, Gene Heskett ghesk...@wdtv.com wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine: I did not. Beg pardon? It looked like an accurate citation to me - you quoted the OP's second

Re: Limit Lines of Output

2013-06-26 Thread Steven D'Aprano
On Wed, 26 Jun 2013 16:24:56 +0100, Joshua Landau wrote: On 25 June 2013 22:48, Gene Heskett ghesk...@wdtv.com wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine: I did not. Unless there are two people called Joshua Landau with email address joshua.landau...@gmail.com, I'm

Re: Limit Lines of Output

2013-06-26 Thread rusi
On Wednesday, June 26, 2013 8:54:56 PM UTC+5:30, Joshua Landau wrote: On 25 June 2013 22:48, Gene Heskett wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine: I did not. I guess Joshua is saying that saying ≠ opining [Or is he opining?] --

Re: Limit Lines of Output

2013-06-26 Thread Joshua Landau
On 26 June 2013 17:46, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 26 Jun 2013 16:24:56 +0100, Joshua Landau wrote: On 25 June 2013 22:48, Gene Heskett ghesk...@wdtv.com wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine: I did not. Unless there are two

Re: Limit Lines of Output

2013-06-26 Thread Steven D'Aprano
On Wed, 26 Jun 2013 10:09:13 -0700, rusi wrote: On Wednesday, June 26, 2013 8:54:56 PM UTC+5:30, Joshua Landau wrote: On 25 June 2013 22:48, Gene Heskett wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine: I did not. I guess Joshua is saying that saying ≠ opining But it

Limit Lines of Output

2013-06-25 Thread Bryan Britten
Hey, group, quick (I hope) question: I've got a simple script that counts the number of words in a data set (it's more complicated than that, but that's one of the functions), but there are so many words that the output is too much to see in the command prompt window. What I'd like to be able

Re: Limit Lines of Output

2013-06-25 Thread Joel Goldstick
On Tue, Jun 25, 2013 at 4:09 PM, Bryan Britten britten.br...@gmail.comwrote: Hey, group, quick (I hope) question: I've got a simple script that counts the number of words in a data set (it's more complicated than that, but that's one of the functions), but there are so many words that the

Re: Limit Lines of Output

2013-06-25 Thread Bryan Britten
Ah, I always forget to mention my OS on these forums. I'm running Windows. -- http://mail.python.org/mailman/listinfo/python-list

Re: Limit Lines of Output

2013-06-25 Thread Joshua Landau
On 25 June 2013 21:22, Bryan Britten britten.br...@gmail.com wrote: Ah, I always forget to mention my OS on these forums. I'm running Windows. Supposedly, Windows has more [http://superuser.com/questions/426226/less-or-more-in-windows], For Linux+less; this works: from subprocess import Popen,

Re: Limit Lines of Output

2013-06-25 Thread Joel Goldstick
On Tue, Jun 25, 2013 at 4:22 PM, Bryan Britten britten.br...@gmail.comwrote: Ah, I always forget to mention my OS on these forums. I'm running Windows. -- http://mail.python.org/mailman/listinfo/python-list I don't think I fully understand your problem. Why can't you send output to a text

Re: Limit Lines of Output

2013-06-25 Thread Bryan Britten
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.

Re: Limit Lines of Output

2013-06-25 Thread Ian Kelly
On Tue, Jun 25, 2013 at 2:31 PM, Joshua Landau joshua.landau...@gmail.com wrote: On 25 June 2013 21:22, Bryan Britten britten.br...@gmail.com wrote: Ah, I always forget to mention my OS on these forums. I'm running Windows. Supposedly, Windows has more

Re: Limit Lines of Output

2013-06-25 Thread Dave Angel
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