Roman Yakovenko wrote: > Hi. I have 2 different implementation of the same class \ function. > I'd like to use implementation according to some future existence. ^^^^^^^^^^^^^^^^^^^^^^^ Do you mean you want to check whether you can do from __future__ import generators and define either a generator or an ordinary function? holger