[Biopython-dev] [Bug 2507] Adding __getitem__ to SeqRecord for element access and slicing

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Jun 5 10:47:43 UTC 2008


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





------- Comment #6 from biopython-bugzilla at maubp.freeserve.co.uk  2008-06-05 06:47 EST -------
Note that adding __len__ has a knock on effect when dealing with SeqRecord
objects with a zero length sequence - they now evaluate to False rather than
True.

This was an issue for some of the unit tests where "if record" was used rather
than the more explicit "if record is not None".

This change could therefore have unexpected side effects in existing scripts,
however adding __len__ is required if we intend to make the SeqRecord act more
like the Seq object.


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