<s> registry = set ( ) <EOL> def register ( active = True ) : <EOL> def decorate ( func ) : <EOL> print ( '<STR_LIT>' <EOL> % ( active , func ) ) <EOL> if active : <EOL> registry . add ( func ) <EOL> else : <EOL> registry . discard ( func ) <EOL> return func <EOL> return decorate <EOL> @ register ( active = False ) <EOL> def f1 ( ) : <EOL> print ( '<STR_LIT>' ) <EOL> @ register ( ) <EOL> def f2 ( ) : <EOL> print ( '<STR_LIT>' ) <EOL> def f3 ( ) : <EOL> print ( '<STR_LIT>' ) </s>
