Removing Pubic Hair Methods

Marc 'BlackJack' Rintsch bj_666 at
Wed Jan 30 13:38:31 CET 2008

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.

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list