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
919-636-4239
Chapel Hill NC

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to