| |
| | [No title] |
 | | Now to adapt it to a normal, base-0 sequence: >>> seq = adapt(b1, iseq) >>> seq[0], seq[2], seq[4] (2, 5, 11) Well, that's cool, but it seemed like a lot of work. |
 | | AntiProtocols to the rescue: >>> register_type(BaseOneSeq2, ~iseq) >>> seq3 = adapt(b2, iseq) >>> seq3[0], seq3[2], seq3[4] (2, 5, 11) ================================================================================ I'd like to support T->P as well as P->P adaption. |
 | | Some special casing was need to get these to work "right". |
| members.cox.net /~tim.hochberg/adaption4.py (1043 words) |
|