Re: [Tutor] object design question

2007-05-16 Thread Alan Gauld
"Kent Tenney" <[EMAIL PROTECTED]> wrote > The class I'm working on does conversion between ReStructuredText > and the Leo (http://leo.sf.net)file format. It also > wraps rst->html rst->xml etc. OK, I still don;t knoew exactly what it is. But I'll take a guess from what you say that that you have

Re: [Tutor] object design question

2007-05-16 Thread Kent Tenney
Alan Gauld btinternet.com> writes: > > "Kent Johnson" tds.net> wrote > >> Howdy, > >> > >> I would be interested in some discussion of > >> which of the following approaches is preferred and why. > >> > >> class RstManager: > >> def __init__(self, text): > >> self.parsed = parseRst(

Re: [Tutor] object design question

2007-05-15 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote >> Howdy, >> >> I would be interested in some discussion of >> which of the following approaches is preferred and why. >> >> class RstManager: >> def __init__(self, text): >> self.parsed = parseRst(text) >> def parseRst(self, text): >>

Re: [Tutor] object design question

2007-05-15 Thread Kent Johnson
Kent Tenney wrote: > Howdy, > > I would be interested in some discussion of > which of the following approaches is preferred and why. > > class RstManager: > > def __init__(self, text): > self.text = text > self.parseRst() > > def parseRst(self): > p

[Tutor] object design question

2007-05-15 Thread Kent Tenney
Howdy, I would be interested in some discussion of which of the following approaches is preferred and why. class RstManager: def __init__(self, text): self.text = text self.parseRst() def parseRst(self): parsed = self.parsed = parsed