MCPcopy Create free account
hub / github.com/ActiveState/code / get_select

Function get_select

recipes/Python/456375_File_Extractor/recipe-456375.py:158–170  ·  view source on GitHub ↗
(numbers)

Source from the content-addressed store, hash-verified

156 return file_list
157
158def get_select(numbers):
159 while True:
160 try:
161 select = int(raw_input('Extract: '))
162 if 1 <= select <= numbers:
163 return select
164 else:
165 print 'ERROR: Must Be Between 1 And', numbers
166 except Exception, error:
167 if error.__class__ is EOFError:
168 raise EOFError
169 else:
170 print 'ERROR: Must Be A Number'
171
172def get_save_point():
173 while True:

Callers 1

extractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected