projects
/
doneit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2036f41
)
I think its best not to pass on exceptions, besides it improves the readability of...
author
Ed Page
<eopage@byu.net>
Thu, 16 Apr 2009 13:44:16 +0000
(08:44 -0500)
committer
Ed Page
<eopage@byu.net>
Thu, 16 Apr 2009 13:44:16 +0000
(08:44 -0500)
src/coroutines.py
patch
|
blob
|
history
diff --git
a/src/coroutines.py
b/src/coroutines.py
index
320eb10
..
9ab75bf
100755
(executable)
--- a/
src/coroutines.py
+++ b/
src/coroutines.py
@@
-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):