Re: [Tutor] Game of python, help please.

2012-04-17 Thread leo degon
Ok that was simple change. Dont know why but there was a small error preventing that from working before. But the problem is with the creating findsurrounding function On Tue, Apr 17, 2012 at 3:14 PM, Alan Gauld wrote: > On 17/04/12 19:23, leo degon wrote: > >> Ok so I've done a bit of work on th

Re: [Tutor] Game of python, help please.

2012-04-17 Thread Alan Gauld
On 17/04/12 19:23, leo degon wrote: Ok so I've done a bit of work on the program and rewrote it. I tried to take everyones advice. I've used more functions, I've made it so that it is a list of lists each containing an integer instead of another list with a single entry. It still looks too comp

Re: [Tutor] Game of python, help please.

2012-04-17 Thread leo degon
Ok so I've done a bit of work on the program and rewrote it. I tried to take everyones advice. I've used more functions, I've made it so that it is a list of lists each containing an integer instead of another list with a single entry. Im am having problems thinking of how to simply and elegantly

Re: [Tutor] Unwanted "close failed in file object destructor" after broken pipe

2012-04-17 Thread Evert Rol
> First, generate a file named "data.txt" as follows: > > -- 8< -- > for i in range(1,100): >print '.' * 80 > -- 8< -- > > After that, save the following snippet as "test.py" in the directory > containing "data.txt": > > -- 8< -

[Tutor] Unwanted "close failed in file object destructor" after broken pipe

2012-04-17 Thread Tadeus (Eus) Prastowo
Hi! First, generate a file named "data.txt" as follows: -- 8< -- for i in range(1,100): print '.' * 80 -- 8< -- After that, save the following snippet as "test.py" in the directory containing "data.txt": -- 8< -