cascading python executions only if return code is 0

Chris Angelico rosuav at gmail.com
Sun Dec 22 22:09:30 EST 2013


On Mon, Dec 23, 2013 at 1:33 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> Anyway, I may be completely misinterpreting what I'm reading. Perhaps the
> assertion is checking a function invariant ("one of the strategies will
> always succeed") in which case you're doing it exactly right and I should
> shut up now :-)

Or maybe it has a lengthy piece of error trapping code that wasn't
germane to the discussion, and for brevity was squished down to a
quick little assert :)

ChrisA



More information about the Python-list mailing list