Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wouldn't the example with the if/elif be the same as the above TypeError one? I suppose a ValueError would actually be more appropriate.

Proper design by contract support would be great too.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: