[Tutor] creating a class

Alan Gauld alan.gauld at btinternet.com
Wed Oct 6 00:46:01 CEST 2010

"T MURPHY" <tvsm at hotmail.com> wrote 

> how do i go about creating a class in python.

class C: pass

is the simplest way. 
But it's not very useful, being empty.

But most tutorials discuss OOP, which one are you using?

Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list