parameters: (f)
return_statement: return proper
docstring: This decorator modifies a __getitem__/__setitem__ method such that it will always receive a tuple
docstring_summary: This decorator modifies a __getitem__/__setitem__ method such that it will always receive a tuple
docstring_tokens: This decorator modifies a __getitem__ / __setitem__ method such that it will always receive a tuple
function: def properGetitem(f):
    """
      This decorator modifies a __getitem__/__setitem__ method such that it will always receive a tuple
    """
    def proper(self,mbt,*args):
      if not isinstance(mbt,tuple):
        mbt = (mbt,)
      return f(self,mbt,*args)
    return proper
function_tokens: def properGetitem ( f ) : def proper ( self , mbt , * args ) : if not isinstance ( mbt , tuple ) : mbt = ( mbt , ) return f ( self , mbt , * args ) return proper