Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Komodo 7 or 8 code completion for django

I am using Komodo 7 for writing my django/python code.

There is one thing that I really liked when I used Eclipse for my python stuff and it was that I could do :

assert isinstance([variable],[type])

and by that help eclipse determine the coding completion for the specific variable.

Is there any way to do it using Komodo ? the IsInstance trick doesn't work here.

like image 359
Nuno_147 Avatar asked Oct 04 '22 18:10

Nuno_147


1 Answers

The answer (by interjay) to this similar question suggests you can add hints like:

if 0: foo = Bar()

in places where you're used to using

assert isinstance(foo, Bar)

Not as pretty, of course...

EDIT: it works for me, with Komodo Edit 6.0.3 and Komodo Edit 8.0.0

EDIT: I also found this, which indicates there is no other way (and unlikely to be soon).

like image 77
shx2 Avatar answered Oct 10 '22 23:10

shx2