A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-May/035896.html below:

[Python-Dev] KeyboardInterrupt on Windows

[Python-Dev] KeyboardInterrupt on WindowsMichael Hudson mwh@python.net
Fri, 30 May 2003 22:22:32 +0100
Jeremy Hylton <jeremy@zope.com> writes:

> It's probably an unintended consequence of the "while 1" optimization
> and the fast-next-opcode optimization.  "while 1" doesn't do a test at
> runtime anymore.  And opcodes like JUMP_ABSOLUTE bypass the test for
> pending exceptions.  The next result is that while 1: pass puts the
> interpreter in a tight loop doing a JUMP_ABSOLUTE that goes nowhere. 
> That is offset X has JUMP_ABSOLUTE X.
>
> I'd be inclined to call this a bug, but I'm not sure how to fix it.

Take out the while 1: optimizations?  I don't want to belittle
Raymond's efforts, but I am conscious of[1] Tim's repeated
observations of the correlation between the number of optimizations in
the compiler and the number of weird bugs therein.

Cheers,
M.

[1] I'm also warming up for a end-of-PyPy-sprint drunken hacking
    session so you probably shouldn't take me too seriously :-)

-- 
  ARTHUR:  Why should a rock hum?
    FORD:  Maybe it feels good about being a rock.
                    -- The Hitch-Hikers Guide to the Galaxy, Episode 8



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4