简体   繁体   中英

how do i know what parameters a python function takes with wingware IDE

in visual studio all you had to do was type the first parenthesis and it showed you the parameters required.

It's not doing that in python / wingware, what is the best / easiest way to do this?

It depends on the version of the WingIDE. In the free version (WingIDE101) you will not get any hints to your code. You have to buy at least personal license and you will see something like this: WingIDE个人

This works for imported and built in modules as well

Python is a "dynamically-typed" programming language, that meaning that the odds are against the IDE in providing code-intelligence.

That said, Wing-IDE is the very best for Python, and there are a few things you can do: first be sure to have open the "Source Assistant" panel, ie, press F2 and locate it to your right. Second, be sure to inform the IDE of what Python interpreter are you using, as well as any particular Python path that your project might be using; all of that you can do in Project/Project Properties. Finally, you still might need to give hints sometimes to the IDE about your instances with "assert isinstance(x,SomeType)".

Admittedly, is not as straightforward as using Visual Studio, but the good reasons to use Python and its very capable ecosystem, or the easy integration with C/C++ more than compensate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM