[Tutor] Python Daemons
Steven D'Aprano
steve at pearwood.info
Wed Aug 2 00:08:43 EDT 2017
On Tue, Aug 01, 2017 at 09:03:30PM -0400, dbosah wrote:
> It usually says that it's an error.
Sorry, my crystal ball is at the shop being repaired and I don't know
what "an error" means or how to fix it.
Please COPY AND PASTE the full text of the error, starting with the
line "Traceback" and ending with the error message. Don't summarise it,
or re-type it from memory.
The Python interpreter provides a lot of useful debugging information in
these tracebacks. If you ignore it, and just say "An error occurred", it
is impossible to tell what the error is and why it happened. Your code
has over 20 lines in it. Assuming a minimum of ten things could go wrong
with each line, that's 200 possible errors. At minimum.
It is a waste of my time, and confusing for you, to try to guess which
of those is the error, when you have the information right there in
front of you.
If you post the actual Traceback, we can help. If you don't, we can't.
> And I'm still confused by the definition of a Daemon. Is there another
> resource you know that I can look at to break it down even further?
Have you tried googling for "daemon"?
In summary, and Ben will correct me if I'm wrong, a daemon is a computer
program that runs as a background task. If you come from Windows, think
of your anti-virus scanner which scans every file when you double-click
on it, before the file runs. That will probably be a daemon, or the
closest equivalent.
--
Steve
More information about the Tutor
mailing list