def parse_color(color):
"""Parse a color string and return (r, g, b) values from 0.0 to 1.0.
Example:
>>> parse_color('#fff')
(1.0, 1.0, 1.0)
"""
Are you saying the name 'parse_color' shouldn't be automatically available in the doctest and instead there should be an explicit import? That feels to me like insisting on unnecessary boilerplate.
(BTW Launchpad's issue tracker is *terribly inconvenient* would you PLEASE migrate to GitHub issues?)
Consider this:
def parse_color(color):
"""Parse a color string and return (r, g, b) values from 0.0 to 1.0.
Example:
>>> parse_color('#fff')
(1.0, 1.0, 1.0)
"""
Are you saying the name 'parse_color' shouldn't be automatically available in the doctest and instead there should be an explicit import? That feels to me like insisting on unnecessary boilerplate.
(BTW Launchpad's issue tracker is *terribly inconvenient* would you PLEASE migrate to GitHub issues?)