[Tutor] setting EOF symbol

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Sat Mar 15 12:36:31 2003


> Since Python does not support embedded assignment, there's no way to
> read and test at the same time. SIGH.

Hi Bob,

There is a set-and-test sort of recipe in the Python Cookbook:

    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66061


Hope this helps!