[Python-Dev] Re: PEP-317

Moore, Paul Paul.Moore@atosorigin.com
Tue, 10 Jun 2003 09:14:10 +0100


From: Steven Taschuk [mailto:staschuk@telusplanet.net]
> 2. The run-time warnings are issued when raising an exception;
> also not usually on a performance-critical path.  (Except for
> things like StopIteration.  But the PEP does not propose any
> change to the C API, so the built-in iterators won't be affected.)

But the runtime check has to be done for all uses of the raise
statement, so that the penalty is incurred not only by people who
haven't changed their code but also by those who have. It's a
pity that people who have done what is required still get penalised.

That's in the nature of runtime warnings, but nevertheless shouldn't
be ignored.

Paul