@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 @receiver decorator? Or the @tube decorator as well?
-
Any idea why the RTFD is out of date with master? Can I help get that on track?
@glyph points out in #82 that the docs are out-of-date insofar as
linesToNumbersOrOperatorsis shown as being decorated@tube, but not@receiver.On master, in
docs/listings/rpn.py,linesToNumbersOrOperatorsis indeed shown as decorated@receiver(inputType=IFrame). In addition,tube.rsthas:prepend: @tubein the entry for this include.I have built the docs myself locally and the entry appears this way:
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?