3 ms·
There's plenty of things which are only caught if actually run. I've certainly seen coworkers push code like: if case_that_im_not_going_to_bother_trying_t
by ken 8y ago
There's plenty of things which are only caught if actually run. I've certainly seen coworkers push code like:
if case_that_im_not_going_to_bother_trying_to_test:
obj.method_which_doesnt_exist()
- catdog 8y agoThat's the downside of duck typing, could as well be `obj.method_which_might_get_created_at_some_point_at_runtime()`
- heavenlyblue 8y agoI rarely see code in python that I would both like to touch and that uses techniques of this sort.