The following forum message was posted by  at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3492084:

Allow me to resurrect this topic...

Is it possible for PyDev to support metaclass autocompletion in the case below:

[code]
class Meta(type):
    field = ['myfield', 'another']

class Base(object):
    __metaclass__ = Meta

class O(Base):
    pass

O().fields 
# PyDev can know that fields exists (and not issue a waring about it) and
autocomplete it as a list
# It just have to look the inheritance chain for __metaclass__.
[/code]

Regards,
Emil


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to