Re: Re: Horrible response to keyboardInterrupt

Seth Vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1221190541.987.247.camel@rosebud>
On Thu, 2008-09-11 at 20:33 -0700, CAI Qian wrote:
> --- CAI Qian <[email protected]> wrote:
> 
> > Hi,
> > 
> > --- Seth Vidal <[email protected]> wrote:
> > 
> > > On Thu, 2008-09-11 at 19:32 -0700, CAI Qian wrote:
> > > 
> > > > Correct. That is one of situations of bad CTRL-C response. I was
> > > trying
> > > > to simulate a network failure or slow connection. It could be
> > quite
> > > > normal in reality.
> > > > 
> > > 
> > > Great, then please file this  against python.
> > > 
> > > $ ipython
> > > In [1]: import socket
> > > 
> > > In [4]: socket.gethostbyname('www.phy.duke.edu')
> > >
> >
> ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C---------------------------------------------------------------------------
> > > KeyboardInterrupt                         Traceback (most recent
> > call
> > > last)
> > > 
> > > the socket call to gethostbyname does let you do an interrupt in
> > the
> > > middle of it - or at least - not at all times.
> > >
> > 
> > I know there must be something wrong with Python.
> > 
> 
> The question is, is this the only place that Python fails?

And yet, not an interesting question for this list.

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.