Re: basic class question..

2009-11-15 Thread Pyrot
On 11월15일, 오후9시52분, "Diez B. Roggisch" wrote: > Pyrot schrieb: > > > class rawDNA: > >    import string > > Importing here is unusual. Unless you have good reasons to do so, I > suggest you put the imports on top of the file. > > >    trans = string.

Re: basic class question..

2009-11-15 Thread Pyrot
On 11월15일, 오후10시15분, Tim Chase wrote: > Pyrot wrote: > > class rawDNA: > >import string > >trans = string.maketrans("GATC","CTAG") > > >def __init__(self, template = "GATTACA"): > >self.template = template

basic class question..

2009-11-15 Thread Pyrot
class rawDNA: import string trans = string.maketrans("GATC","CTAG") def __init__(self, template = "GATTACA"): self.template = template //shouldn't this make "template" accessible within the scope of "rawDNA"?? def noncoding(self):