[wingide-users] RE: What doc tool do you use?
Wingware Support
support at wingware.com
Fri Oct 14 08:09:10 MDT 2011
On 10/14/11 9:27 AM, Linos wrote:
> Do i have a way to do the same but inside an object? something like:
>
> test2.py
> class test(object): pass
> variable = test()
>
> test2.pi:
> variable.runtime_tuple = ()
>
> and from other code:
> import test2
> test2.variable.runti..... (autocomplete)
>
> I have tried any differentes ways but still i only get autocompleted __class__
> and __init__ from the object.
In the pi file try:
class test:
runtime_tuple = ()
Or:
class test:
def __init__(self):
self.runtime_tuple = ()
You're annotating types, not specific variables.
--
Stephan Deibel
Wingware | Python IDE
Advancing Software Development
www.wingware.com
More information about the wingide-users
mailing list