Hardcoded the factorial() function using a dictionary to return support for Python 2.4 and 2.5.
Authored by: bugman 2010-07-23
Parent: [r11339]
Child: [r11341]