Menu

#1038 Property generation dialog does not recognize variables

open
nobody
5
2009-12-29
2009-12-29
No

Whenever I want to generate properties for any of my classes, and to the "Generate Properties" dialog, first all my class attributes are recognized correctly (I follow the Python guidelines that say that anything meant to be "private" should have a leading underscore, so typically all my class variables begin with _). But after selecting which ones I want and hitting next, I see that in all the methods PyDev is going to insert, variables are referenced as having TWO leading underscores.

Of course that in these specific circumstances, I could just do a find & replace, replacing all "__" for "_". But that may not be the case under some other circumstances. Is something wrong with the second part of the Properties Generation dialog?

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.