Re: [Tutor] a shorter way to write this

2005-03-25 Thread Peter Markowsky
Hi, On Mar 25, 2005, at 2:02 PM, jrlen balane wrote: basically, i'm going to create a list with 96 members but with only one value: list1[1,1,1,1...,1] You might want to use a list comprehension like: [1 for i in range(96)] -Pete ___ Tutor maillist -

Re: [Tutor] reading from stdin

2005-03-01 Thread Peter Markowsky
Hi, On Mar 1, 2005, at 6:01 PM, Sean Perry wrote: [EMAIL PROTECTED] wrote: If I do: $ ./produce.py | ./read.py I get nothing for ten seconds, then I get the numbers 0 through 9, one per line. What am I missing? From the python man page: -u Force stdin, stdout and stderr to be totally unbuffere