[rfc] avoid assert statements?

Martin Pool mbp at sourcefrog.net
Tue Oct 2 03:01:40 BST 2007


OK, I filed:

https://bugs.edge.launchpad.net/bzr/+bug/147927
"use python -O (assertions off) when running installed copy"

As I say there, I'm not sure how to make -O take effect on Windows.

As far as coding standards, I wouldn't say never to use assertions, but
certainly to consider whether either an explicit if/raise, or just
omitting the check would be more appropriate.

-- 
Martin



More information about the bazaar mailing list