Package Yab :: Module Language
[show private | hide private]
[frames | no frames]

Module Yab.Language

This module implements programming language patterns found in non-python programming languages.
Classes
Delegator A delegator is a class that can delegate method calls to another.

Exceptions
CNMFound  

Function Summary
  get_next_method(self, current_class, method_name)
Return the next method in the class's search path.
  inherits_from(my_class, base)
Does my_class inherit from base.
  mixin(mixins, base)
Create a new class by mixing in the given mixins with the given base.

Function Details

get_next_method(self, current_class, method_name)

Return the next method in the class's search path. This is somewhat equivalent to LISPs get-next-method. The arguments are:

1 The object making the call

2 The class from which the currently executing method is running.

3 The method name.

inherits_from(my_class, base)

Does my_class inherit from base.

mixin(mixins, base)

Create a new class by mixing in the given mixins with the given base. When searching for a class attribute, python will search each mixin in order, and then the base.

Generated by Epydoc 2.0 on Fri Aug 15 16:30:51 2003 http://epydoc.sf.net