Backport PR #4908: lookup builtin docstrings rather than hardcoding