Archive for the 'Python' Category

GWT 1.4 Released

Wednesday, September 26th, 2007

I had glanced at the google web toolkit quickly in the past; but being as busy as I am, moved on quickly when it was directed to Java programmers. Sadly, as with web applications, UI issues tend crop up in regards to my projects. Being the masochist I am, and seeing as though […]

Re-rasing Exceptions

Monday, September 24th, 2007

At times Chris McDonough can write something useful on plope.com; unline me I note. I enjoy reading someone elses pain - especially when I can tend to violate the rules; for better or worse. I did try and imagine what he was working on that pissed him off…chuckling it was after hours of […]

Tracing the Python Stack in GDB

Tuesday, May 22nd, 2007

Several times I have been confronted with this problem. The last time was some time ago, where my main project application would lockup, and we were unable to consistently reproduce the problem. It always seems to be an exercise in futility attempting to debug a hung Zope process using GDB. Since I’m […]

Printing Stack Trace

Wednesday, May 9th, 2007

Useful for printing out the stack trace when debugging calls within Zope code:

items = traceback.extract_stack()
for stackItem in items:
msg = ‘ %s:%s:’ % (os.path.basename(stackItem[0]), stackItem[1])
logger.warn(’%s:’ % msg)