>>> from Bio.Seq import Seq
>>> s = "ATTATATATA"
>>> s = Seq(s)
>>> s
Seq('ATTATATATA', Alphabet())
>>> s == s
True
>>> s == s.reverse_complement().reverse_complement()
False
>>> str(s) == str(s.reverse_complement().reverse_complement())
True
I do not really understand the above behaviour, can anybody please explain me in detail? Why comparing both Seq returns False while after converting back to str it is True?
What version of Biopython do you have and did it give you any warnings about this which you've not shown?