Removing Pubic Hair Methods
Sion Arrowsmith
siona at chiark.greenend.org.uk
Wed Jan 30 08:24:26 EST 2008
Marc 'BlackJack' Rintsch <bj_666 at gmx.net> wrote:
>On Tue, 29 Jan 2008 11:48:38 -0800, Tobiah wrote:
>> class genital:
>> def pubic_hair(self):
>> pass
>> def remove(self):
>> del(self.pubic_hair)
>I think `pubic_hair` is an attribute instead of a method.
>
>Oh, and ``del`` is a statement and not a function. So the way you wrote
>it with parentheses is a bit misleading.
And who's going to want to call genital().remove() anyway?
--
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list
mailing list