[Biopython] ngs_backbone
Brent Pedersen
bpederse at gmail.com
Tue May 4 15:13:31 UTC 2010
On Tue, May 4, 2010 at 8:06 AM, Peter <biopython at maubp.freeserve.co.uk> wrote:
> On Tue, May 4, 2010 at 3:56 PM, Brent Pedersen <bpederse at gmail.com> wrote:
>>>
>>> I see you have a copy of our (private) function Bio.Seq._maketrans() here:
>>> http://github.com/JoseBlanca/franklin/blob/master/franklin/seq/seqs.py
>>> Would it be useful to have this as a public API in Biopython?
>>
>> just out of curiosity (since it's tested and working), is the reason
>> it's safe to rely on dictionary order in _maketrans() there because
>> it's simple keys -- letters -- in the mapping dictionary?
>
> We don't make any assumptions about the dictionary order (this does
> change in different implications of Python), but we do assume that
> keys() and values() will be in matched order which I think is part of
> the Python standard.
>
> Peter
>
(replying to list this time)
thanks. i didn't know that. mentioned here:
http://docs.python.org/release/2.5.2/lib/typesmapping.html
More information about the Biopython
mailing list