osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange Class definition


Hello

Following syntax doesn't generate any errors:

 >>> foo=0
 >>> Class Foo:
        foo

But class Foo seems empty

Is it equivalent to ?

 >>> class Foo:
         pass