[Tutor] a class query

bob gailer bgailer at gmail.com
Mon Jun 7 16:49:42 CEST 2010

On 6/7/2010 10:01 AM, Payal wrote:
> Hi all,
> I know the difference  between
> class Parent :
> class Parent(object) :
> But in some softwares i recall seeing,
> class Parent() :
> Is this legal syntax?

Teach: To answer that question, just try it at the interactive prompt. 
If it is not legal syntax you will get a syntax error!

Feed: Yes

Originally it was not legal. Then in some version it became legal.

Bob Gailer
Chapel Hill NC

More information about the Tutor mailing list