Re: [Tutor] Learning class code and function (Alan Gauld)

2015-01-21 Thread jarod...@libero.it
>I'd also question why you seem to have a function that has the class >name in its name? Should that function not be a method of the class? >Or is it part of some third party library perhaps? Thanks for the clarification!! Could you please make an example of this two condition I still try to devo

Re: [Tutor] Learning class code and function

2015-01-20 Thread Albert-Jan Roskam
- On Tue, Jan 20, 2015 4:44 PM CET Alan Gauld wrote: >On 20/01/15 12:04, jarod...@libero.it wrote: >> Dear all, I continue to try to understand some code: >> class Tutto(): I think you need a new-style class wit property. "Return a property attribute for new-style cl

Re: [Tutor] Learning class code and function

2015-01-20 Thread Alan Gauld
On 20/01/15 12:04, jarod...@libero.it wrote: Dear all, I continue to try to understand some code: class Tutto(): def __init__(self): print "Ok" #@property def readsets(self,nome): self.nome = nome self._readsets = parse_tutto_readset_file(self.nome)

[Tutor] Learning class code and function

2015-01-20 Thread jarod...@libero.it
Dear all, I continue to try to understand some code: class Tutto(): def __init__(self): print "Ok" #@property def readsets(self,nome): self.nome = nome self._readsets = parse_tutto_readset_file(self.nome) return self._readsets Why If uncomment the decora