[Pydev-users] [pydev - Users] Code Generation
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2006-10-09 17:35:42
|
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 |