timdoug/diesel — comment on commit baf6235d7a62ac7a1889dbdeeb7da5663ba00381
File: diesel/core.py line 73
By dowski:

What if instead of doing `isinstance` here you just call it, but have `Loop` also define `sendto` that happens to raise `NotImplementedError`? You'll avoid that `isinstance` call for each `sendto` and if anyone tries to call `sendto` on a non `UDPLoop` they'll hear about it from the `NotImplementedError`.