Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82877

Re: Program calling unwanted functions

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 <davea@davea.name>
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 <davea@davea.name>
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 <b37a93ec-c90b-4375-a264-e96c3128871b@googlegroups.com> <5498808D.60305@davea.name> <CALwzidkPhDPVfw_Gx_cEDPvDmi=1mzda4uJ1HtcdwP39Cw1X_Q@mail.gmail.com> <mailman.17145.1419292640.18130.python-list@python.org> <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17177.1419410427.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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
> <snip>
> 998
> 999
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "<stdin>", line 3, in test
>    File "<stdin>", line 3, in test
>    File "<stdin>", line 3, in test
> <snip>
>    File "<stdin>", line 3, in test
>    File "<stdin>", 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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Program calling unwanted functions Luke Tomaneng <luketomaneng@gmail.com> - 2014-12-22 11:55 -0800
  Re: Program calling unwanted functions John Gordon <gordon@panix.com> - 2014-12-22 20:09 +0000
  Re: Program calling unwanted functions Dave Angel <davea@davea.name> - 2014-12-22 15:35 -0500
  Re: Program calling unwanted functions Ian Kelly <ian.g.kelly@gmail.com> - 2014-12-22 16:48 -0700
  Re: Program calling unwanted functions Dave Angel <davea@davea.name> - 2014-12-22 18:57 -0500
    Re: Program calling unwanted functions sohcahtoa82@gmail.com - 2014-12-22 16:04 -0800
      Re: Program calling unwanted functions Ian Kelly <ian.g.kelly@gmail.com> - 2014-12-22 17:12 -0700
      Re: Program calling unwanted functions Dave Angel <davea@davea.name> - 2014-12-22 19:12 -0500

csiph-web