There are some assertion code (testing if a condition is false, if it is false, raise an Error object) in my python, which is useful when I test my package. But such case would never occur when in the produce code. If I keep them in if statement, it will take some runtime. I'm wondering what is the practice that take care of the assertion code in python. -- http://mail.python.org/mailman/listinfo/python-list
- Anything equivalent to cassert in C++? Peng Yu
- Re: Anything equivalent to cassert in C++? Simon Forman
- Re: Anything equivalent to cassert in C++? Jean-Michel Pichavant
- Re: Anything equivalent to cassert in C++? Lie Ryan
- Re: Anything equivalent to cassert in C++? Grant Edwards
- Re: Anything equivalent to cassert in C++? Bruno Desthuilliers
- Re: Anything equivalent to cassert in C++? Jonathan Hartley
- Re: Anything equivalent to cassert in C++? Aahz