[wingide-users] isinstance hint in for-loop

Wing IDE Support support at wingware.com
Mon Nov 9 13:40:16 MST 2009


On 11/9/09 3:33 PM, Mark Jones wrote:
> Would it be possible to put these isinstance calls in comments as well?
>   So we don't take any kind of performance penalty during production?

It is not currently possible to put isinstance calls into comments. 
assert calls are omitted when running w/ python -O as are if __debug__ 
blocks, such as:

if __debug__:
     import x
     assert isinstance(a, x.y)

Cheers,

John


More information about the wingide-users mailing list