You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""
L{tube} is a class decorator which declares a given class to be an
implementer of L{ITube} and fills out any methods or attributes which are
not present on the decorated type with null-implementation methods (those
which return None) and None attributes.
@param cls: A class with some or all of the attributes or methods described
by L{ITube}.
@receiver(inputType=IFrame)
def linesToNumbersOrOperators(line):
from operator import add, mul
try:
yield int(line)
except ValueError:
if line == b'+':
yield add
elif line == b'*':
yield mul
Maybe the docs just need to be pushed to RTFD again?
From the docstring on
tube
:However, the readme shows:
Indeed, when I try to decorate a function, I get:
The text was updated successfully, but these errors were encountered: