[Tutor] Re: getting input from keyboard
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Sun Dec 29 03:04:02 2002
On Sat, 28 Dec 2002, Danny Yoo wrote:
> > def __init__(self):
> > try:
> > self.impl = _GetchWindows()
> > except ImportError: pass
> > self.impl = _GetchUnix()
.
>
> This should be one way to correct it:
>
> ###
> def __init__(self):
> try:
> self.impl = _GetchWindows()
> except ImportError: pass
> else:
> self.impl = _GetchUnix()
> ###
Oh good grief, not again. I'm having a bad day, aren't I. *grin*
Let me try that one more time.
###
def __init__(self):
try:
self.impl = _GetchWindows()
except ImportError:
self.impl = _GetchUnix()
###