[Tutor] a class query
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!
Originally it was not legal. Then in some version it became legal.
Chapel Hill NC
More information about the Tutor