[New-bugs-announce] [issue4888] misplaced (or misleading) assert in ceval.c

Skip Montanaro report at bugs.python.org
Fri Jan 9 05:52:14 CET 2009


New submission from Skip Montanaro <skip at pobox.com>:

There is what I believe is a misplaced - or at least misleading - assert
in the while loop following the fast_block_end label.  If why != WHY_YIELD
before the loop starts I don't see how that relationship could change
within the loop.  Proposed patch against py3k branch attached.

(Yes, I realize this is trivial and that the assert is compiled away in
non-debug builds.)

----------
files: assert.diff
keywords: patch
messages: 79453
nosy: skip.montanaro
severity: normal
status: open
title: misplaced (or misleading) assert in ceval.c
type: feature request
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12658/assert.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4888>
_______________________________________


More information about the New-bugs-announce mailing list