Possible Duplicate:
How to break a line of chained methods in Python?
Following question is about python codestyle and may be design of reusable lib. So I have builder that chains graph creation into single big line as follow:
graph.builder() \
.push(root) \
.push(n1) \
.arc(arcType) \ #root-arc-n1 error is there
.push(n2) \
...
At line #4 I get the error about wrong symbol (#). So general question how to produce well commented code against long builder path. Also as a good answer I'll appreciate suggestion on changes in builder to allow comments for clarifying code.