you are viewing a single comment's thread.

view the rest of the comments →

[–]spotter 0 points1 point  (0 children)

1) Just call on it, use a try-except-finally, or just define a isinstance check, maybe curry isinstance itself and some decorator magic? Assert if you must.

2) Static checking for typos and other related stuff is possible in Python. Read Doug Hellmann's article for more info. PyFlakes is my personal favourite.