[Biopython-dev] Re: [BioPython] GRAVY index program anyone?

Andrew Dalke dalke at dalkescientific.com
Fri Aug 1 05:04:56 EDT 2003

> # add in the lowercase characters
> _full_kd = kd.copy()
> _full_kd.update(dict([ (k.lower(), v) for k, v in kd.items()]))

BTW, I've been experimenting with some of the new 2.3 features.
Unfortunately, I went overboard.  The following is better

_full_kd = {}
for k, v in kd.items():
   _full_kd[k] = _full_kd[k.lower()] = v

					dalke at dalkescientific.com

More information about the Biopython-dev mailing list