parameters: (self, locals=None)
return_statement: return context
docstring: Internal helper function to create a derived context.
docstring_summary: Internal helper function to create a derived context.
docstring_tokens: Internal helper function to create a derived context .
function: def derived(self, locals=None):
          """Internal helper function to create a derived context."""
          context = new_context(self.environment, self.name, {},
                                self.parent, True, None, locals)
          context.vars.update(self.vars)
          context.eval_ctx = self.eval_ctx
          context.blocks.update((k, list(v)) for k, v in self.blocks.iteritems())
          return context
function_tokens: def derived ( self , locals = None ) : context = new_context ( self . environment , self . name , { } , self . parent , True , None , locals ) context . vars . update ( self . vars ) context . eval_ctx = self . eval_ctx context . blocks . update ( ( k , list ( v ) ) for k , v in self . blocks . iteritems ( ) ) return context