This patch fixes a couple of minor problems with the paste (#) operator. It adds an assertion about the mode in which the operands are parsed. And it corrects an error message that was worded backward.
Most importantly, this patch updates the Programmer's Reference to fully describe and illustrate the paste operator.
I am not an expert of sphinx but I suspect this kind of recursive toctree is not supported.