6.15. foundations.guerilla

guerilla.py

Platform:
Windows, Linux, Mac Os X.
Description:
Defines various guerilla / monkey patching objects.
Others:
Portions of the code by Guido Van Rossum: http://mail.python.org/pipermail/python-dev/2008-January/076194.html

6.15.1. Functions

foundations.guerilla.attributeWarfare(object)[source]

Alterates object attributes using guerilla / monkey patching.

Parameters:object (object) – Object to alterate.
Returns:Object.
Return type:object
foundations.guerilla.baseWarfare(name, bases, attributes)[source]

Adds any number of attributes to an existing class.

Parameters:
  • name (unicode) – Name.
  • bases (list) – Bases.
  • attributes (dict) – Attributes.
Returns:

Base.

Return type:

object