[wingide-users] method completion

Martijn Pieters mj at zopatista.com
Mon Mar 13 06:28:35 EST 2006

Michael P. Soulier wrote:
> I suppose that method completion in a dynamic language like Python is
> difficult, since the IDE doesn't always know what type a given object is. I
> currently havve a logging object in self.logger, and typing self.logger.
> doesn't attempt to complete anything, since, I'm guessing that the IDE doesn't
> know what self.logger is. 
> Is there a way that I can give the IDE a hint as to the types, in a language
> that is as weakly typed as Python?

Yes, just add a assertion in your code:

   assert isinstance(self.logger, <type>)

and Wing will run with that.

Martijn Pieters

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : /pipermail/wingide-users/attachments/20060313/504709e1/signature.bin

More information about the wingide-users mailing list