<s> '''<STR_LIT>''' <EOL> from array import array <EOL> class AString ( array ) : <EOL> """<STR_LIT>""" <EOL> def __new__ ( cls , * args ) : <EOL> return array . __new__ ( cls , "<STR_LIT:c>" , * args ) <EOL> def upper ( self ) : <EOL> """<STR_LIT>""" <EOL> return AString ( self . tostring ( ) . upper ( ) ) <EOL> def lower ( self ) : <EOL> """<STR_LIT>""" <EOL> return AString ( self . tostring ( ) . lower ( ) ) <EOL> def __getslice__ ( self , * args ) : <EOL> """<STR_LIT>""" <EOL> return array . __getslice__ ( self , * args ) . tostring ( ) <EOL> def __setslice__ ( self , start , end , sub ) : <EOL> """<STR_LIT>""" <EOL> return array . __setslice__ ( self , <EOL> start , end , <EOL> array ( "<STR_LIT:c>" , sub ) ) <EOL> def __str__ ( self ) : <EOL> return self . tostring ( ) </s>
