Newbie completely confused
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Mon Sep 24 00:29:12 EDT 2007
In message <mailman.912.1190438242.2658.python-list at python.org>, Gabriel
Genellina wrote:
> En Fri, 21 Sep 2007 13:34:40 -0300, Jeroen Hegeman
> <jeroen.hegeman at gmail.com> escribi�:
>
>> class ModerateClass:
>> def __init__(self):
>> return
>> def __del__(self):
>> pass
>> return
>>
>> class HugeClass:
>> def __init__(self,line):
>> self.clear()
>> self.input(line)
>> return
>> def __del__(self):
>> del self.B4v
>> return
>> def clear(self):
>> self.long_classes = {}
>> self.B4v={}
>> return
>
> (BTW, all those return statements are redundant and useless)
The OP could be trying to use them as some kind of textual indicator of the
end of the function. Myself, I prefer end-comments, e.g.
class HugeClass :
...
def clear(self) :
...
#end clear
#end HugeClass
More information about the Python-list
mailing list