Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109758
| From | John Gordon <gordon@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: why it is like stop running after a 3 seconds |
| Date | 2016-06-09 17:59 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <njcape$om3$1@reader1.panix.com> (permalink) |
| References | <35cd5920-1fbb-441f-9fc6-2f3f2e5f8568@googlegroups.com> |
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 | Next — Previous in thread | Find similar | Unroll 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