Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4694853
By: lianos
Hi all,
I don't know if there's some precedent for submitting templates that we think
are useful, but here's one that I copied from TextMate's python bundle that's
pretty nifty and comes in handy.
It sets up for you the basic code to create a property in your class def. I
have it bound to `prop` but you can bind it to what you think is most
appropriate:
def ${prop}(): [EMAIL PROTECTED]
doc = """${Docstring}"""
def fget(self):
return self._${prop}
def fset(self, value):
self._${prop} = value
def fdel(self):
del(self._${prop})
return locals()
${prop} = property(**${prop}())${cursor}
Enjoy,
-steve
______________________________________________________________________
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users