[Python-ideas] breaking out of module execution

Ethan Furman ethan at stoneleaf.us
Wed Apr 25 17:31:34 CEST 2012


Matt Joiner wrote:
> If not use_simple_api:
>     class C:

More like:

   class C:
     def basic_method(self):
       pass
     if not use_simple_gui:
       def advanced_method(self, this, that):
         pass

~Ethan~



More information about the Python-ideas mailing list