<p>If not use_simple_api:<br>
    class C:</p>
<div class="gmail_quote">On Apr 25, 2012 4:19 PM, "Mark Shannon" <<a href="mailto:mark@hotpy.org">mark@hotpy.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greg Ewing wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Nick Coghlan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It isn't quite as simple as<br>
just deleting those lines though, since we likely still wouldn't want<br>
to allow return statements in class bodies.<br>
</blockquote>
<br>
I'm sure there's someone out there with a twisted enough<br>
mind to think of a use for that...<br>
<br>
</blockquote>
<br>
It's not that twisted.<br>
<br>
class C:<br>
<br>
   def basic_feature(self):<br>
       ...<br>
<br>
   if use_simple_api:<br>
       return<br>
<br>
   def advanced_feature(self):<br>
       ...<br>
<br>
Not that this is a good use, but it is a use :)<br>
<br>
Cheers,<br>
Mark.<br>
<br>
______________________________<u></u>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-ideas</a><br>
</blockquote></div>