[Biopython-dev] Python 2.6

Peter biopython at maubp.freeserve.co.uk
Mon Oct 6 17:36:53 UTC 2008


Frank wrote:
>
>Peter wrote:
>> Nexus/Nexus.py and Nexus/Trees.py - with my suggested fix, the unit
>> test output will currently say Set or set depending on the version of
>> python.  A further minor change to test_Nexus.py would be needed to
>> cope with this.
>
> Nexus.py and Trees.py fixed in cvs (together with some other changes).

Great.

> test_Nexus.py has been changed by removing the troublesome output. I assume
> when printing the elements of a set, their order is undefined, and so such
> an output should not be part of a test because it could potentially fail.

Yes, in theory we cannot expect the order of the elements in a set to
be consistent - so this looks like a simple solution :)

I'll rerun the test suite tomorrow on Python 2.6, but apart from
Bio.Restriction I think we are OK on the the set/Set issue.

There's a complex __init__ / super issue in Bio.Restriction on Bug
2604 which may be solved (Eric is hoping to investigate further time
permitting).  Any additional eyes on this couldn't hurt.  See
http://bugzilla.open-bio.org/show_bug.cgi?id=2604

Are there any other python 2.6 issues?

Peter



More information about the Biopython-dev mailing list