Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3953957
By: gmkrishn_uofc

Is there some feature to help writing getter and setter attribute code in 
Python.
Specifically I am looking for something like

varname<Key Sequence>

results in
-----------
def _get<varname>(self):
   return self.__<varname>

def _set<varname>(self,value):
   self.<varname> = value

varname = property(_get<varname>,_set<varname>,
            doc="The property <varname>")
---------

This looks similar to code completion templates, excepts that it is parametrized
by <varname>. Ofcourse here all occurences of <varname> in the generated code
should be replaced with the word at which the cursor was when <KeySequence>
was pressed.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to