Change: Assert

created on March 15, 2013, 9:04 p.m. by Hevok & updated on March 15, 2013, 9:04 p.m. by Hevok

The Python Assertions and Invariants make debugging easier. Just put an assertion in the beginning and to the end of each function where you check the input and output, so one will get live checking. The great advantage is that all Assertions can be switched off for Performance Reasons by a small change in Python config.

Mpo_snake_&_python.jpg

Categories: Tutorial
Parent: Python

Comment: Created entry.

See entry | Admin

Comment on This Data Unit