[Biopython-dev] [Bug 2814] New: Use properties instead of __getattr__ in FeatureLocation

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sat Apr 18 21:45:12 UTC 2009


http://bugzilla.open-bio.org/show_bug.cgi?id=2814

           Summary: Use properties instead of __getattr__ in FeatureLocation
           Product: Biopython
           Version: Not Applicable
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: biopython-bugzilla at maubp.freeserve.co.uk


The SeqFeature's location (i.e. the FeatureLocation object) has start and end
"attributes", but they are done with some magic in __getattr__.  We should use
a modern python property get (so they will show up in dir(...) and we can give
them docstrings)

See also,
http://lists.open-bio.org/pipermail/biopython-dev/2009-April/005781.html
http://lists.open-bio.org/pipermail/biopython-dev/2009-April/005734.html
http://lists.open-bio.org/pipermail/biopython/2007-September/003703.html

Patch to follow


-- 
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