News for hackers. Stuff that matters.
Re:Ask HN: Good Python codebases to read? by andreasvc on Thursday July 16, 2015 @07:26PM (#9900482)
I would do simply """f docstring\n%s""" % _shared_docstring, no need for a separate concatenation. However, I wonder whether sphinx would handle this.
Re:Ask HN: Good Python codebases to read? by shoyer on Friday July 17, 2015 @03:31AM (#9901630)
This sort of thing works fine. We use it for pandas all the time.