Hi, -1 because I find it extremly hard to read and not necessary in that scale.
Actually, there are a lot of recipes in the Cookbook [1] on how to use decorators for type-checking. On example is: @require(int, int) def add(x,y): return x + y Which I find much more readable, easier to implement and even backwards compatible: def add(x,y): return x + y add = require(int, int)(add) g2g, Justin [1] http://aspn.activestate.com/ASPN/Cookbook/Python/ -- http://mail.python.org/mailman/listinfo/python-list