Integer multiplication overflow

Nadav Horesh nadavh at envision.co.il
Sun Oct 8 05:59:59 EDT 2000


try:

def fact(num):
  if num < 2: return 1L
  return num * fact(num - 1)


Nadav.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nadavh.vcf
Type: text/x-vcard
Size: 360 bytes
Desc: Card for Nadav Horesh
URL: <http://mail.python.org/pipermail/python-list/attachments/20001008/15dd3a85/attachment.vcf>


More information about the Python-list mailing list