Message98346
| Author |
skrah |
| Recipients |
facundobatista, jjconti, mark.dickinson, rhettinger, skrah |
| Date |
2010年01月26日.18:41:28 |
| SpamBayes Score |
7.6157936e-05 |
| Marked as misclassified |
No |
| Message-id |
<1264531290.11.0.954773555913.issue7633@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If none of you is working on it right now, I'll produce a new patch.
Mark, how about this:
def __add__(self, other, context=None, raiseit=False):
"""Returns self + other.
-INF + INF (or the reverse) cause InvalidOperation errors.
"""
other = _convert_other(other, raiseit)
if other is NotImplemented:
return other
Then the context functions could look cleaner. |
|