Skip to content
Myr

[svn] __radd__ and co now works for Undefined too

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent ab45b84 · Browse files · 1 file+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:jinja/datastructure.py+2 added-3 removed
47 unmodified lines
48 else:49 raise TypeError('cannot create %r instances' %50 self.__class__.__name__)5152 def __add__(self, other):53 return other54 __sub__ = __mul__ = __div__ = __add__52 __sub__ = __mul__ = __div__ = __rsub__ = __rmul__ = __div__ = __radd__ = \53 __add__ = lambda self, other: other5455 def __getitem__(self, arg):56 return self57
315 unmodified lines