Methods - shmolyneaux/SquareJam GitHub Wiki

Method inherits from Object.

This class contains the following methods:

  • compile
  • __call__

This class also overrides the following methods from a parent class:

  • __str__
  • __repr__

Methods

_str_()

  • returns Method(%s) where %s is repr(self.__key__).

_repr_()

  • functional the same as __str__.

compile()

  • compiles the Method from the attribute method_text. The compiled data is put in the attribute marshalled_code_object, and the default values are put in the attribute __defaults__.

_call_( *args, **keyargs )

  • calls the function using the given arguments.