Ask Your Question

Revision history [back]

Are you working in Wing's editor? If so, Wing is using static analysis to offer completion, and my guess is the code where it's failing is created dynamically in a way that resists static analysis. You can get Wing to also use dynamic/runtime analysis by setting a breakpoint and running to it, or working interactively in the Python Shell. That way it should be reporting what is actually there at runtime.

Are you If you're not debugging or working in Wing's editor? If so, the Python Shell, Wing is using only static analysis to offer completion, and my guess is the code where it's failing is created dynamically in a way that resists static analysis. You can get Wing to also use dynamic/runtime analysis by setting a breakpoint and running to it, or working interactively in the Python Shell. That way it should be reporting what is actually there at runtime.runtime, as does any shell like iPython.