Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82803
| From | John Gordon <gordon@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Program calling unwanted functions |
| Date | 2014-12-22 20:09 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <m79tqh$jdr$1@reader1.panix.com> (permalink) |
| References | <b37a93ec-c90b-4375-a264-e96c3128871b@googlegroups.com> |
In <b37a93ec-c90b-4375-a264-e96c3128871b@googlegroups.com> Luke Tomaneng <luketomaneng@gmail.com> writes: > The "cameraman" function restarts itself when it ends, and the "kid" > function calls "instructions()." Does anyone know why? The cameraman function restarts itself because ... that's what you told it to do. As far as I can see, every possible logic branch ends up with a call to cameraman(). The kid function doesn't call instructions, but the last line of your script does call it, unconditionally. -- John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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