def test_oldstyle_getattr():
 class C:
  def __getattr__(self, name):
   return globals()[name]
 a = C()

def test_oldstyle_getattr ( ) : class C : def __getattr__ ( self , name ) : return globals ( ) [ name ] a = C ( )
verify we dont access __getattr__ while creating an old style class .