Strange Class definition

ast none at gmail.com
Mon Sep 16 09:01:26 EDT 2019


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






More information about the Python-list mailing list