[wingide-users] Clever enum solution that works with autocomplete?

Luc Bourhis luc_j_bourhis at mac.com
Thu Mar 31 06:49:41 MDT 2011


Hi,

I use something along the line of

class klass(object):

  a, b, c, d, e, f = xrange(6)
 	
Then Wing will happily auto-complete klass.a or even obj.a if obj is an instance of klass. Simple minded solution which caters for 99% of the use of constants-with-names that I ever had. Your mileage may vary though.

Luc Bourhis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20110331/ba709f93/attachment.html


More information about the wingide-users mailing list