Proposal: Python Class Files

Frank Niessink frankn=nuws at cs.vu.nl
Sat Oct 7 10:56:00 EDT 2000


Michal Wallace <sabren at manifestation.com> wrote:

> 3. All statements in the file must be inside the class definition.

Hmm, and where would my test code then go?  I often use the
if '__name__' == '__main__' idiom for test code.

Cheers, Frank

-- 
Arthur yawed wildly as his skin tried to jump one way and his skeleton the
other, whilst his brain tried to work out which of his ears it most wanted to
crawl out of.
	-- Douglas Adams, 'Life, the Universe, and Everything'



More information about the Python-list mailing list