[Python-Dev] if/else and macros

Greg Stein gstein@lyra.org
Mon, 17 Jul 2000 02:57:56 -0700


On Mon, Jul 17, 2000 at 11:45:18AM +0200, Fredrik Lundh wrote:
>...
> This solution gets rids of the macro mess, and what's more
> important, it moves exception handling out of the inner loop.
> 
> (yes, it's using goto's, but it's a decoding loop, and it should
> be as fast as it possibly can -- especially if you're feeding it
> valid data!)
> 
> The result is smaller source, smaller code, a smaller inner loop,
> faster decoding, and less discussion on this list.

Can't just out of the loop. One of the possible results of the error is to
ignore it and continue. Or to insert a particular character and continue.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/