Vinay (or anybody else),
Well, now that logging is working, how do I stop it from working?
I'm developing in PythonWin. When I run my test script, I get one
message. When I run it a second time, I get two, a third time gets me
three, and so on.
I feel like the Sorceror's Apprentice!
Rob
--
Beautiful! Thank you very much!
One of the problems I was laboring under was that I did not know where
to go to find the official documentation. Thanks for that link too!
Rob
--
http://mail.python.org/mailman/listinfo/python-list
Greetings!
I want to write messages into the Windows event log. I found
sevicemanager, but the source is always "Python Service", and I'd like
to be a bit more descriptive. Poking around on the Internet revealed
the existence of the logging module. It seems to have easily
understood methods wit
Greetings again!
There's something more to determining whether a class member is a class
variable or an instance variable. Here's a slightly expanded version
of my last script:
class ScannerCommand:
taskName = ''
scanList = []
number = 0
def __init__(self, data):
pass
#
Skip and Matimus,
Thank you for your replies. Putting initialization in the constructor
gets me what I want. But I'd like to understand this a bit more.
Here's another script:
class ScannerCommand:
taskName = ''
scanList = []
def __init__(self, data):
self.scanList = []
Greetings!
Here's my script:
start of script
class ScannerCommand:
taskName = ''
scanList = []
def __init__(self):
print "Creating a ScannerCommand object; list has " + \
str(len(self.scanList)) + " objects."
class Scanner:
def Read(self, data):