RE: Keyerror addhandler

2009-04-20 Thread Steven Macintyre
Hi Peter, > It looks like 2.5 has the better error message, but the actual problem is > the same for both versions. Try changing mylogfileHandler's class to [handler_mylogfileHandler] class=handlers.RotatingFileHandler Many thanks, this worked for me! Steven -- http://mail.python.org/mailman/l

RE: Keyerror addhandler

2009-04-20 Thread Steven Macintyre
Hi Diez, I am using 2.4, could that be the cuase of your issue below. Ideally, I would like to stay with the 2.4 version and based on two tutorials, this was what I came up with Steven Steven Macintyre schrieb: > Hi all, > > I'm wondering if anyone can assist me with thi

Keyerror addhandler

2009-04-19 Thread Steven Macintyre
Hi all, I'm wondering if anyone can assist me with this as I am very confused about it now. I am getting the following error; Traceback (most recent call last): File "/usr/lib/python2.4/logging/config.py", line 191, in fileConfig logger.addHandler(handlers[hand]) KeyError: 'handler_mylogfi

Creating a more random int?

2006-01-24 Thread Steven Macintyre
Hi all, I need to retrieve an integer from within a range ... this works ... below is my out puts ... it just does not seem so random ... Is there perhaps a suggestion out there to create a more random int ...? >>> random.randint(3, 8) 7 >>> random.randint(3, 8) 3 >>> random.randint(3, 8) 3 >>>