Kamaelia docs : Axon.Axon

Axon base classes

What is defined here is a metaclass that is used as a base class for some key classes in Axon.

It was originally created to allow super class calling in a slightly nicer manner in terms of syntactic sugar easier to get right that still has the good effects of "super" in a multiple inheritance scenario. Use of this particular feature has been deprecated because of more subtle issues in inheritance situations.

However this metaclass has been retained (and is still used) for possible future uses.

Test documentation

Tests passed:

  • AxonObject - derives from object, but sets a metaclass of AxonType - to allow superclass method calling simply. ttbChecked
  • AxonType.__init__ - adds an extra __super method to all objects created from classes with this metaclass simplifying superclass method calling. ttbChecked


class AxonObject(object)

Base class for axon objects.

Uses AxonType as its metaclass.


class AxonType(type)

Metaclass for Axon objects.

Methods defined here

__init__(cls, name, bases, dict)

Override creation of class to set a 'super' attribute to what you get when you call super().

Note that this 'super' attribute is deprecated - there are some subtle issues with it and it should therefore be avoided.


Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 01 Feb 2010 at 04:00:28 UTC/GMT


Kamaelia is an open source project originated from and guided by BBC Research. For more information browse the site or get in contact.

This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)

(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved

This web site is powered by the same code created for the bicker manor project. For more details, contact Michael Sparks at BBC Research directly (cf contact)