def copy(self):
context = CLIContext()<EOL>for item in dir(self):<EOL><INDENT>if item[<NUM_LIT:0>] != '<STR_LIT:_>' and item not in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>setattr(context, item, getattr(self, item))<EOL><DEDENT><DEDENT>return context<EOL>
Returns a new CLIContext instance that is a shallow copy of
the original, much like dict's copy method.