Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: UNSURE 0.235 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.54; '*S*': 0.01; 'assuming': 0.09; 'def': 0.12; '999': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'java': 0.24; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'getting': 0.31; '"",': 0.31; '>>>>': 0.31; 'depth': 0.31; 'file': 0.32; 'url:python': 0.33; '(most': 0.33; 'test': 0.35; 'similar': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'url:3': 0.61; 'back': 0.62; 'email addr:gmail.com': 0.63; 'maximum': 0.63; 'different': 0.65; 'received:74.208': 0.68; 'results': 0.69; 'url:4': 0.69; 'limit': 0.70; 'exceeded': 0.97 Date: Mon, 22 Dec 2014 19:12:01 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Program calling unwanted functions References: <5498808D.60305@davea.name> <02c018f7-d871-4b3c-abd4-0fca1fbe12c1@googlegroups.com> In-Reply-To: <02c018f7-d871-4b3c-abd4-0fca1fbe12c1@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:RissYRimQdXtQhPzNyDtWAtIW0tzM41NPc9MqTzvY4t 5hWzia0ZSJY3IjtMbRKdqA27QHBw6hpw5HlxEqFQWDvDhf7JyI vd7OStRtIPJ/221e7i5k4I7iNpxlYFjuAfF1AzoBFR/Ew3MrFY yBgQ8mOoCCpj4+jNEvNTWAh7FhmEJa8mssbxqipsQNMI8tMpVW EW/k+xNnPjGUseoA+14KlXByweHwoX3ArUuPZL3kLqDUBZVvdj s69PxKLM0e3St6hLY4VWl56adJvQKQGVZVFrVdv1VpPbsOqiZ1 VkTHbKp04hZRZaoiXVL05WcvUG66Qy8/Uq6SBwh3zguGb0iJM/ qLHMlYKPUZ4Bp6UVwCLc= X-UI-Out-Filterresults: notjunk:1; X-Mailman-Approved-At: Wed, 24 Dec 2014 09:40:26 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1419410427 news.xs4all.nl 2933 [2001:888:2000:d::a6]:57357 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82877 On 12/22/2014 07:04 PM, sohcahtoa82@gmail.com wrote: >>>> def test(t): > ... print(t) > ... test(t+1) > ... >>>> test(1) > 1 > 2 > 3 > 4 > > 998 > 999 > Traceback (most recent call last): > File "", line 1, in > File "", line 3, in test > File "", line 3, in test > File "", line 3, in test > > File "", line 3, in test > File "", line 3, in test > RuntimeError: maximum recursion depth exceeded > > Huh...there actually is a limit of about 1,000. I'm assuming this is hard-coded? I did a similar test with Java a while back and was getting different results every time. > https://docs.python.org/3.4/library/sys.html#sys.getrecursionlimit -- DaveA