I think its best not to pass on exceptions, besides it improves the readability of...
authorEd Page <eopage@byu.net>
Thu, 16 Apr 2009 13:44:16 +0000 (08:44 -0500)
committerEd Page <eopage@byu.net>
Thu, 16 Apr 2009 13:44:16 +0000 (08:44 -0500)
src/coroutines.py

index 320eb10..9ab75bf 100755 (executable)
@@ -148,12 +148,9 @@ def comap(function, target):
        >>> # cm.close()
        """
        while True:
-               try:
-                       item = yield
-                       mappedItem = function(item)
-                       target.send(mappedItem)
-               except StandardError, e:
-                       target.throw(e.__class__, e.message)
+               item = yield
+               mappedItem = function(item)
+               target.send(mappedItem)
 
 
 def func_sink(function):