[Python-bugs-list] Python on Windows can (PR#122)

ygyang@hotmail.com ygyang@hotmail.com
Fri, 5 Nov 1999 09:15:16 -0500 (EST)


Full_Name: 
Version: 
OS: 
Submission from: (NULL) (203.127.51.229)


Hi,
Don't know if this is considered a bug:
Python.exe crashed when I tried to use a recursive function,
like the infamous factorial.
I've downloaded and tried this on both Python 1.5.1 and 1.5.2
of the Windows 95/98/NT version.

The function is as follows

def fact(n):
	if n==1: return 1
	else: return n*fact(n)

fact(1) returned 1 with no problems.
But fact(2) or any argument greater than 1 crashed python
with a Windows application error window popping up.

I've run this before on a Linux version of Python without any problems.