Autocompletion in dynamic language IDEs, specifically Python in PyDev

前端 未结 7 1767
无人共我
无人共我 2021-01-14 01:53

I\'m new to Python, with a background in statically typed languages including lots and lots of Java.

I decided on PyDev in eclipse as an IDE after checking features/

7条回答
  •  萌比男神i
    2021-01-14 02:15

    You might want to take a look at WingIDE. It autocompletes your datafile correctly.

    If it is unable to infer the type, you can use an assert like

    assert isinstance(datafile, file)
    

    to help the autocompleter out

提交回复
热议问题