Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #17700
| Date | 2011-12-21 14:11 -0600 |
|---|---|
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| Subject | Re: Why does this launch an infinite loop of new processes? |
| References | <4EF22CA1.1070200@gmail.com> <4EF233A7.6020907@stoneleaf.us> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3958.1324498271.27778.python-list@python.org> (permalink) |
On 12/21/2011 1:29 PM, Ethan Furman wrote: > Anything that runs at import time should be protected by the `if > __name__ == '__main__'` idiom as the children will import the __main__ > module. So the child imports the parent and runs the spawn code again? That makes sense. -- CPython 3.2.2 | Windows NT 6.1.7601.17640 | Thunderbird 7.0
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Why does this launch an infinite loop of new processes? Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-21 14:11 -0600 Re: Why does this launch an infinite loop of new processes? Hans Mulder <hansmu@xs4all.nl> - 2011-12-22 12:17 +0100
csiph-web