[Baypiggies] Python way to avoid usage of raise

Andrew Dalke dalke at dalkescientific.com
Wed Oct 6 17:01:41 CEST 2010

On Oct 5, 2010, at 9:57 PM, James Tatum wrote:
> I've seen this anti-pattern up close. There is no Pythonic answer -
> exceptions are the answer.

There is a Pythonic answer - you can go the Twisted route.
(Excepting those who think Twisted isn't Pythonic. ;)

Twisted's Deferreds can't use the stack because they
implement continuations through callback methods. You
"addCallback" for the normal case and "addErrback" for the

It's possible to develop your entire code base this way.

It's going to be structured entirely different than what
the OP's more senior rule mandator expects, but that might
be a good thing here.

				dalke at dalkescientific.com

More information about the Baypiggies mailing list