#ifdef like question.

holger krekel pyth at devel.trillke.net
Mon May 13 17:00:56 EDT 2002


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





More information about the Python-list mailing list