<s> '''<STR_LIT>''' <EOL> import weakref <EOL> from python_toolbox import misc_tools <EOL> def _is_weakreffable ( thing ) : <EOL> '''<STR_LIT>''' <EOL> try : <EOL> weakref . ref ( thing ) <EOL> except TypeError : <EOL> return False <EOL> else : <EOL> return True <EOL> class A ( object ) : <EOL> '''<STR_LIT>''' <EOL> @ staticmethod <EOL> def s ( ) : <EOL> pass <EOL> @ misc_tools . set_attributes ( count = <NUM_LIT:0> ) <EOL> def counter ( * args , ** kwargs ) : <EOL> '''<STR_LIT>''' <EOL> try : <EOL> return counter . count <EOL> finally : <EOL> counter . count += <NUM_LIT:1> </s>
