> I spoke too soon. UnicodeEncodeError is a subclass of ValueError. So > catching ValueError from int(str_or_unicode) is the way to go. Who's > writing that Zope 3 style guide again? Great. http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZopePythonStyleGuide -- Steve Alexander