Attributes in privates methods

2010-02-19 Thread Yasser Almeida Hernández
Hi all. I have a class with the attribute 'log_file', opened out of the class: class ProteinCluster: def __init__(self,cluster_name,log_file): ... self.log_file = log_file ... Then i have a private method which write in the log_file: def _read_structure(self, pdb_code):

Re: Attributes in privates methods

2010-02-19 Thread Diez B. Roggisch
Am 19.02.10 16:08, schrieb Yasser Almeida Hernández: Hi all. I have a class with the attribute 'log_file', opened out of the class: class ProteinCluster: def __init__(self,cluster_name,log_file): ... self.log_file = log_file ... Then i have a private method which write in the log_file: def

Re: Attributes in privates methods

2010-02-19 Thread Bruno Desthuilliers
Yasser Almeida Hernández a écrit : Hi all. I have a class with the attribute 'log_file', opened out of the class: class ProteinCluster: def __init__(self,cluster_name,log_file): ... self.log_file = log_file ... Then i have a private method which write in the log_file: