I have the variable assignment in order to return the assigned value and compare that to an empty string, directly in the while loop.
Here is how I\'m doing it in PH
from functools import partial for name in iter(partial(raw_input, 'Name:'), ''): do_something_with(name)
or if you want a list:
>>> names = list(iter(partial(raw_input, 'Name: '), '')) Name: nosklo Name: Andreas Name: Aaron Name: Phil Name: >>> names ['nosklo', 'Andreas', 'Aaron', 'Phil']