[Biopython-dev] [Bug 2814] Use properties instead of __getattr__ in FeatureLocation
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Tue Apr 21 11:12:18 UTC 2009
http://bugzilla.open-bio.org/show_bug.cgi?id=2814
biopython-bugzilla at maubp.freeserve.co.uk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #3 from biopython-bugzilla at maubp.freeserve.co.uk 2009-04-21 07:12 EST -------
(In reply to comment #2)
> Peter, you mentioned on the mailing list that this will be applied after the
> 1.50 release. Since Py2.3 support ends there also, you could use the newer
> decorator style instead:
>
> start = property(fget= lambda self : self._start,
> doc="Start location (possibly a fuzzy position).")
>
> becomes:
>
> @property
> def start(self):
> """Start location (possibly a fuzzy position)."""
> return self._start
>
>
> I think this is the preferred style for Python 2.4 and later.
Thanks for the suggestion Eric. That sounds like a good plan, but not yet. See
Bug 2917.
I've checked in this patch and am marking this bug as fixed. See:
Bio/SeqFeature.py CVS revision 1.17
Peter
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list