mp.c: Proper binding for `mp_factorial'.
[catacomb-python] / catacomb / __init__.py
index 0f0aa99..93f66da 100644 (file)
@@ -108,11 +108,6 @@ class _tmp:
   def mont(x): return MPMont(x)
   def barrett(x): return MPBarrett(x)
   def reduce(x): return MPReduce(x)
-  def factorial(x):
-    'factorial(X) -> X!'
-    if x < 0: raise ValueError, 'factorial argument must be > 0'
-    return MPMul.product(xrange(1, x + 1))
-  factorial = staticmethod(factorial)
 _augment(MP, _tmp)
 
 class _tmp: