class problem

Duncan Booth duncan.booth at invalid.invalid
Mon Aug 28 13:52:18 EDT 2006


fegge wrote:

> when i declare a class, is there difference between the below:
> class myClass():
> class myClass(threading.Thread)
> 
Yes, the first one is a syntax error because you aren't allowed empty 
parentheses in a class statement but the second one is a syntax error 
because you don't have a colon.





More information about the Python-list mailing list