[Biopython-dev] [Bug 2879] missing __delitem__ in Bio.PDB.Entity.Entity

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Wed Jul 22 05:14:04 EDT 2009


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





------- Comment #3 from biopython-bugzilla at maubp.freeserve.co.uk  2009-07-22 05:14 EST -------
Thanks for the clarification.

Note in python __delitem__ is a special method, and rather than this:

chain.__delitem__(66)

you would normally do:

del chain[66]

and this will internally call the special __delitem__ method. This is
much like other special methods, e.g. str(object) will internally do
object.__str__() for you. You wouldn't normally use these double
underscore methods explicitly.

In any case, I don't understand what Thomas intended the __delitem__
to do, and there may be a bug here.

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