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


Groups > comp.lang.python > #109758

Re: why it is like stop running after a 3 seconds

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: why it is like stop running after a 3 seconds
Date Thu, 9 Jun 2016 17:59:10 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 15
Message-ID <njcape$om3$1@reader1.panix.com> (permalink)
References <35cd5920-1fbb-441f-9fc6-2f3f2e5f8568@googlegroups.com>
NNTP-Posting-Host panix1.panix.com
X-Trace reader1.panix.com 1465495150 25283 166.84.1.1 (9 Jun 2016 17:59:10 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Thu, 9 Jun 2016 17:59:10 +0000 (UTC)
User-Agent nn/6.7.3
Xref csiph.com comp.lang.python:109758

Show key headers only | View raw


In <35cd5920-1fbb-441f-9fc6-2f3f2e5f8568@googlegroups.com> Ho Yeung Lee <davidbenny2000@gmail.com> writes:

> i write a program, it is like forever loop
> but i only restrict it to run 2 level recursively, 

I don't think the restriction is working.  There is "if deep > 0:"
at the top of the function, but the recursive calls aren't inside that
if block.  DFS keeps calling itself with smaller and smaller values of
deep.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

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


Thread

why it is like stop running after a 3 seconds Ho Yeung Lee <davidbenny2000@gmail.com> - 2016-06-09 03:55 -0700
  Re: why it is like stop running after a 3 seconds John Gordon <gordon@panix.com> - 2016-06-09 17:59 +0000

csiph-web