#!/usr/bin/env python

# -------------
# Assertions.py
# -------------

"""
Turn OFF assertions at run time with -O.
% python -O Assertions.py
"""

def inc (v) :
    return v + 1

print "Assertions.py"

assert inc(2) == 3
assert inc(2) == 4

print "Done."

"""
Assertions.py
Traceback (most recent call last):
  File "./Assertions.py", line 18, in <module>
    assert inc(2) == 4
AssertionError
"""

496b557bda8a2d743327160873237c1c6f4a66c3
#!/usr/bin/env python

# -------------
# Assertions.py
# -------------

"""
Turn OFF assertions at run time with -O.
% python -O Assertions.py
"""

def inc (v) :
    return v + 1

print "Assertions.py"

assert inc(2) == 3
assert inc(2) == 4

print "Done."

"""
Assertions.py
Traceback (most recent call last):
  File "./Assertions.py", line 18, in <module>
    assert inc(2) == 4
AssertionError
"""
