In article <[email protected]>,
Cleuson Alves <[email protected]> wrote:
> Hello, I am trying to run this code, but I get an answer incorrect arguments
> numbers. someone could put an example of arguments for me to use in the / var
> / log?
Since the first cave man tried to sort his rock collection into
descending order of mastodon kills, people have been inventing really
awesome debugging tools. One of the earliest, and still near the top of
most people's toolkits is the print statement.
You've got:
> if options.logfile is None or options.findstring is None or
> options.logpos is None:
> print("Incorrect arguments numbers.\n")
Start by printing out the values of options.logfile, options.findstring,
and options.logpos. Then at least you will know which of those three is
causing the problem.
--
http://mail.python.org/mailman/listinfo/python-list