[Tutor] Waiting for input.

kromag@nsacom.net kromag@nsacom.net
Tue, 30 Oct 2001 16:57:50 -0800 (PST)


(I just found the range() function, so this will change soon! :-) It kinda 
works like I want it to at this point....)

I would like to have the following function pause between loops:

------------------the following function------------------
def do_r(self,_):
		saved=open('save','r')
		messagebase=cPickle.load(saved)
		saved.close()
		post=messagebase.keys()
		ticker=1
		count=len(messagebase)+1
		while ticker < count:
			post=messagebase[ticker]
			print 'nn Posted by: '+post[0]+' 
'+time.ctime(post[1])+'n'+post[2]
			ticker=ticker+1

-----------------biting off more than I can chew..---------


I keep scoping the Basic Statements chapter in "Learning Python" and have 
found nothing that seems to fit. Where do I need to look?

Thanks folks!