Changes between Initial Version and Version 1 of Ticket #5956, comment 19


Ignore:
Timestamp:
03/23/13 10:35:47 (8 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5956, comment 19

    initial v1  
    11Use `ValueError` for bad user input, not `AssertionError`. If there is any way to produce an `AssertionError` using public functions, that is by definition a bug.
     2
     3Assertions are meant to check internal consistency inside algorithms. They express "I ''know'' this condition is true", not "I want to ''check'' that this condition is true".