2 ms·
where's .isPrime?
by mrkeen 7y ago
where's .isPrime?
- coldtea 7y agoPython doesn't have such a function on the int type, so it will naturally wont show it. The IDE (or, here the "dir" method) shows everything _available_ to use as a method on an integer. If you meant "but can it show functions that are not on the integer type but that accept integers?" -- then many IDEs cannot, but it's not a difficult feature to add in an IDE for known libs/modules. Can't think of any other way a question like "Can my IDE really tell me all the ways I can use an Integer?" makes sense. Of course the IDE wont know about yet unwritten methods which still count as "ways to use an integer". But nobody claimed it can above, and the absence of that doesn't discard autocompletion as an argument (to using the noun first).