Python: Is it bad form to raise exceptions within __init__?

Viewed 68250

Is it considered bad form to raise exceptions within __init__? If so, then what is the accepted method of throwing an error when certain class variables are initialized as None or of an incorrect type?

7 Answers
Related