>>575
MyIterableクラスのインスタンスをつくってイテレータとして利用するんだよ。

if object in MyIrerable():
  # any code...

こんなかんじか?