def get_default(self, ctx):
<EOL>if callable(self.default):<EOL><INDENT>rv = self.default()<EOL><DEDENT>else:<EOL><INDENT>rv = self.default<EOL><DEDENT>return self.type_cast_value(ctx, rv)<EOL>
Given a context variable this calculates the default value.