[Biopython-dev] [Bug 2323] New functions: GCG Checksum and CRC64

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sun Jul 1 01:54:55 EDT 2007


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


mdehoon at ims.u-tokyo.ac.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #17 from mdehoon at ims.u-tokyo.ac.jp  2007-07-01 01:54 EST -------
Sorry for the mistake.

With the code for Python >= 2.4 separately, we still get an error message when
installing Biopython, because Python attempts to byte-compile each module. It
is not so serious, because this error is otherwise ignored. However, how about
this code for Python >= 2.4:

from itertools import cycle, imap

return sum(imap(lambda n,c: n*ord(c.upper()), cycle(range(1,58)),seq)) % 10000

It is almost as fast as the code you now have for Python >= 2.4, but avoids
having to create a separate module gcg24.py.


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