-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
@glyph points out in #82 that the docs are out-of-date insofar as linesToNumbersOrOperators is shown as being decorated @tube, but not @receiver.
On master, in docs/listings/rpn.py, linesToNumbersOrOperators is indeed shown as decorated @receiver(inputType=IFrame). In addition, tube.rst has :prepend: @tube in the entry for this include.
I have built the docs myself locally and the entry appears this way:
@tube
@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
So, two questions:
-
How is it supposed to read? With only the
@receiverdecorator? Or the@tubedecorator as well? -
Any idea why the RTFD is out of date with master? Can I help get that on track?
Metadata
Metadata
Assignees
Labels
No labels