On 5/09/2013 12:27pm, Javier Candeira wrote:
Put first an
unguarded expression that might go boom, so it goes boom early.
Brilliant. It's still a hack.

So what if your method only cared about a particular attribute of whatever object is passed in?

Then maybe ...

    assert(obj.attribute is not None)

... which reminds me of Eiffel

Mike
_______________________________________________
melbourne-pug mailing list
[email protected]
https://mail.python.org/mailman/listinfo/melbourne-pug

Reply via email to