June 5, 2009
The Open/Close principle and isinstance in python

I have to recognized, I nearly used isinstance in python several times, but after some careful consideration I redesigned my solution not to do it (which was actually throwing away quite a lot of…