The Evolution of a Python Programmer
If you can live with floating point results:<p><pre><code>   from math import gamma
   def factorial(x):
      return gamma(x+1)
</code></pre>
This has the advantage of working correctly for non-integer arguments.