[Tutor] code structure terminology and advice

2009-07-21 Thread Che M
Hi, this is really more of a general programming question than a Python question, though perhaps there is a Python-relevant set of terms/answers to it... I'm trying to refactor some code to be more structurally "proper", more easily maintained, etc. Doing some "thinking out loud", and I have t

Re: [Tutor] Question from a newbie

2009-07-21 Thread Alan Gauld
"Deb" wrote My son suggested I play around with Python. Hi, welcome to the tutor list. I was wondering if anybody has any real life applications? There are several folks on the list who make a liiving writing Python. Others, like myself, use it in their day job but its not the main or en

Re: [Tutor] Question from a newbie

2009-07-21 Thread Kent Johnson
On Tue, Jul 21, 2009 at 2:12 PM, Deb wrote: > My son suggested I play around with Python.  I was wondering if anybody has > any real life applications?  It appears to be able to do quite a lot, but is > anybody really doing it with Python? Yes, Python is used in a wide variety of real-life applica

[Tutor] Question from a newbie

2009-07-21 Thread Deb
My son suggested I play around with Python. I was wondering if anybody has any real life applications? It appears to be able to do quite a lot, but is anybody really doing it with Python? I am very curious about this language. I used to be a Clipper programmer in another life (dBASE compiler),

Re: [Tutor] advice on creating and working with a complex datastructure

2009-07-21 Thread Serdar Tumgoren
>> >> I do not think any of these meet the criteria for inheritance. None of >> them "is a" kind of any of the others. >> I refreshed on my OO terminology and I see your point -- that composition is a more appropriate fit here than inheritance. >> I don;t like the use of Filing for a class name,

Re: [Tutor] advice on creating and working with a complex datastructure

2009-07-21 Thread Wayne
On Mon, Jul 20, 2009 at 6:05 PM, Alan Gauld wrote: > "Serdar Tumgoren" wrote > >> Aha, okay, the multiple classes approach makes sense. But would these >> be nested classes, >> > > No although they would probably have attributes containing > the related lists. Thus Race might have a list of Cand