cjprecord / editra

Editra - Developers Text Editor
Other
4 stars 0 forks source link

Python Code Completion inconsistent detection of object instance attributes #780

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In Python language Editra incorrectly detect definition variable (with self 
prefix) if he is declared inside function any class

Original issue reported on code.google.com by sylwek3100 on 27 Nov 2012 at 10:14

GoogleCodeExporter commented 9 years ago
Can you please attach a screenshot or some sort of example to reproduce the 
issue?

Original comment by CodyPrec...@gmail.com on 29 Nov 2012 at 3:23

GoogleCodeExporter commented 9 years ago
Yes, look for secondchar

Original comment by sylwek3100 on 29 Nov 2012 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
The detection of these kind of things are quite hard to do in Python since they 
can be dynamically created or declared anywhere the object is used. 

Its unlikely to be able to support this type of detection of member attributes 
in a fully consistent manor without executing the code and doing postmortem 
introspection which can have side affects as it actually requires executing the 
script.

Will leave open to look into at least perhaps performing more detailed analysis 
of the __init__ method to at least try to better support attributes that are 
declared there.

Original comment by CodyPrec...@gmail.com on 3 Dec 2012 at 5:24

GoogleCodeExporter commented 9 years ago
updating title for clarity

Original comment by CodyPrec...@gmail.com on 5 Apr 2013 at 12:59