[Python-Dev] stack check on Unix: any suggestions? (original) (raw)

Mark Favas m.favas@per.dem.csiro.au
Fri, 01 Sep 2000 04:32:52 +0800


On Thu, Aug 31, 2000 at 02:33:28PM +0200, M.-A. Lemburg wrote:

... At least for my Linux installation a limit of 9000 seems reasonable. Perhaps everybody on the list could do a quick check on their platform ?

Here's a sample script: i = 0 def foo(x): global i print i i = i + 1 foo(x) foo(None)

On my DEC/Compaq/OSF1/Tru64 Unix box with the default stacksize of 2048k I get 6225 iterations before seg faulting...

Mark