Fix upstream #311

Use method `docstring()` instead of property `doc`
Use property `description` instead of `get_code`
Merge pull request #312 from genzj/issue-#311

Fix upstream #311