From: Edmund L. <el...@in...> - 2002-04-10 21:35:07
|
Geoff wrote: >I would propose using "hasattr" to check for the existence of awake, >respond, and sleep, and removing the assert statement. The RuntimeError >that results could have a much better error message than the assert would >give us, anyhow. I think this is a tidier solution that also removes the need for yet another configuration setting. Anyway, code should be written to run correctly without assert statements given that they are removed on an optimized compilation. ...Edmund. |