[wingide-users] Attribute completion & if expression

Pete pfein at pobox.com
Fri Jan 11 08:43:18 MST 2008

Starting in Python 2.5, it's possible to write code using if/then/else as an 
expression.  Wing doesn't seem to do completion on attributes defined in such 
a way.

class Foo(object):
    def __init__(self, x, y=None):
        self.x = x
        self.y = y if y is not None else 0

Wing will offer x in the completion list for Foo instances, but not y.

Peter Fein   ||   773-575-0694   ||   pfein at pobox.com
http://www.pobox.com/~pfein/   ||   PGP: 0xCCF6AE6B
irc: pfein at freenode.net   ||   jabber: peter.fein at gmail.com

More information about the wingide-users mailing list