PyPedal::pyp_newclasses::tail_recursive Class Reference

tail_recursive is a tail recursion decorator that eliminates tail calls for recursive functions. More...

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 func
 firstcall
 argskwd

Static Public Attributes

tuple CONTINUE = object()


Detailed Description

tail_recursive is a tail recursion decorator that eliminates tail calls for recursive functions.

It was taken from the Python Cookbook entry "New Tail Recursion Decorator" submitted by Kay Schlueh. This version was provided by Michele Simionato on 2006/05/15. The URL is: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496691.

Definition at line 2691 of file pyp_newclasses.py.


The documentation for this class was generated from the following file:

Generated on Thu May 1 12:33:45 2008 for PyPedal by  doxygen 1.5.5