<s> from runtime import * <EOL> '''<STR_LIT>''' <EOL> class Root : <EOL> def __getattr__ ( self , name ) : <EOL> if name == '<STR_LIT:x>' : <EOL> return self . _x <EOL> elif name == '<STR_LIT:y>' : <EOL> return self . _y <EOL> else : <EOL> return name <EOL> class A ( Root ) : <EOL> def __init__ ( self ) : <EOL> self . _x = <NUM_LIT:1> <EOL> self . _y = <NUM_LIT:2> <EOL> class B ( A ) : <EOL> @ property <EOL> def w ( self ) : <EOL> return '<STR_LIT>' <EOL> def unknown ( u ) : <EOL> return u <EOL> def main ( ) : <EOL> a = A ( ) <EOL> b = unknown ( a ) <EOL> assert ( b . x == <NUM_LIT:1> ) <EOL> assert ( b . y == <NUM_LIT:2> ) <EOL> assert ( b . z == '<STR_LIT:z>' ) <EOL> assert ( b . w == '<STR_LIT:w>' ) <EOL> c = B ( ) <EOL> d = unknown ( c ) <EOL> assert ( d . x == <NUM_LIT:1> ) <EOL> assert ( d . y == <NUM_LIT:2> ) <EOL> assert ( d . z == '<STR_LIT:z>' ) <EOL> assert ( d . w == '<STR_LIT>' ) <EOL> main ( ) </s>
