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

M.-A. Lemburg mal@lemburg.com
Thu, 31 Aug 2000 15:58:55 +0200


Thomas Wouters wrote:

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 ? On BSDI, which has a 2Mbyte default stack limit (but soft limit: users can set it higher even without help from root, and much higher with help) I can go as high as 8k recursions of the simple python-function type, and 5k recursions of one involving a C call (like a recursive str()).

Ok, this give us a 5000 limit as default... anyone with less ;-)

(Note that with the limit being user settable making a lower limit the default shouldn't hurt anyone.)

-- Marc-Andre Lemburg


Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/