Skip to content

Docstrings for builtin methods are not parsed correctly #627

@cmccandless

Description

@cmccandless

Environment data

VS Code version: 1.19.2
Python Extension version: 0.9.1
Python Version: 3.6 (64-bit)
OS and version: Windows 7 (6.1.7601)

Actual behavior

Docstring for builtin method pow() is parsed as markdown, resulting in the following (note the bold text):

Equivalent to xy (with two arguments) or xy % z (with three arguments)
Some types, such as ints, are able to use a more efficient algorithm when invoked using the three argument form.

actual behavior screenshot

Expected behavior

Docstring for builtin method pow() should appear as (no bold text:

Equivalent to x**y (with two arguments) or x**y % z (with three arguments)
Some types, such as ints, are able to use a more efficient algorithm when invoked using the three argument form.

Steps to reproduce:

  • Install Python extension in VSCode
  • Create new Python file test.py in VSCode
  • In test.py, type "pow(10, 2)"
  • Hover mouse over "pow" to show docstring

Logs

Output from Python output panel

##########Linting Output - flake8##########

Output from Console window (Help->Developer Tools menu)
N/A

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions