Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/file/9ad22a1848fc/allpy/rna.py
Дата изменения: Unknown
Дата индексирования: Sun Feb 3 18:07:30 2013
Кодировка:
allpy: 9ad22a1848fc allpy/rna.py

allpy

view allpy/rna.py @ 310:9ad22a1848fc

Added calls to super to all classes in allpy.base The calls are not exactly correct. This WILL fail in certain inheritance situations. There are two bad situations: * inheritance from object; __init__ of object does not accept any arguments, so it is not compatible with interface of any of our classes * inheritance of Block(Alignment). The situation here is relatively easy to fix: we should force compatibility of function interfaces for Block and Alignment.
author Daniil Alexeyevsky <me.dendik@gmail.com>
date Thu, 16 Dec 2010 21:08:03 +0300
parents 353379082202
children e3bcb9f8d7b0
line source
1 import base
3 class MonomerType(base.MonomerType):
4 by_code1 = {}
5 by_code3 = {}
6 by_name = {}
8 class Monomer(base.Monomer):
9 """RNA monomers: nucleotides."""
10 monomer_type = MonomerType
12 MonomerType._initialize('r')
13 MonomerType.instance_type = Monomer
15 class Sequence(base.Sequence):
16 pass
18 # vim: set ts=4 sts=4 sw=4 et: