Re: [Tutor] Dynamic inheritance?

2005-11-19 Thread Jan Eden
Kent Johnson wrote on 19.11.2005: >Danny Yoo wrote: >>Here's a small example that shows how classes can be treated just >>like any other value in Python: >> >> # >> def makeYa(superclass): >> class Ya(superclass): >> def sayHi(self): >>

Re: [Tutor] smtplib alternative???

2005-11-19 Thread Danny Yoo
On Sat, 19 Nov 2005, Adisegna wrote: > I found this script to send mail online. It works fine but requires me > to enter an mail server. I'm looking for something else that doesn't > require and SMTP server. Having to specify a mail server prohibits me > from sending to alternate domains. Hi Ad

Re: [Tutor] How should I store data ?

2005-11-19 Thread Danny Yoo
On Sat, 19 Nov 2005, Bojan Raicevic wrote: > I want to store data in the shape of (for example): > First name, Last name, Age, ... few more characteristics. > I must be able to search data by any of this fields. For example, > search for age, or name ... etc > Also, I want to put option in

Re: [Tutor] Dynamic inheritance?

2005-11-19 Thread Kent Johnson
Danny Yoo wrote: > Here's a small example that shows how classes can be treated just like any > other value in Python: > > # > def makeYa(superclass): > class Ya(superclass): > def sayHi(self): > superclass.sayHi(self) > p

[Tutor] smtplib alternative???

2005-11-19 Thread Adisegna
Hello, I found this script to send mail online. It works fine but requires me to enter an mail server. I'm looking for something else that doesn't require and SMTP server. Having to specify a mail server prohibits me from sending to alternate domains. Thanks in advance smtpserver = 'my.mailser

Re: [Tutor] Dynamic inheritance?

2005-11-19 Thread Python
On Sat, 2005-11-19 at 15:23 -0800, Danny Yoo wrote: > Here's a small example that shows how classes can be treated just like any > other value in Python: > > # > def makeYa(superclass): > class Ya(superclass): > def sayHi(self): > su

[Tutor] How should I store data ?

2005-11-19 Thread Bojan Raicevic
I want to store data in the shape of (for example): First name, Last name, Age, ... few more characteristics. I must  be able to search data by any of this fields. For example, search for age, or name ... etc Also, I want to put option in main program to change (update), add and remove that data

Re: [Tutor] Dynamic inheritance?

2005-11-19 Thread Danny Yoo
On Sat, 19 Nov 2005, Jan Eden wrote: > I have a number of classes, each of which should inherit from a related > superclass in another module: > > class A(Super.A): > ... > > class B(Super.B): > ... > > class C(Super.C): > ... > > Is there a way to dynamically determine the value of

Re: [Tutor] Dynamic inheritance?

2005-11-19 Thread Jan Eden
Hi Kent, Kent Johnson wrote on 19.11.2005: >Jan Eden wrote: >> Is there a way to dynamically determine the value of Super at >> runtime? Background: Depending on certain object attributes which are >> set during the object initialization, I need to use a different set >> of templates for the res

Re: [Tutor] Dynamic inheritance?

2005-11-19 Thread Kent Johnson
Jan Eden wrote: > Hi, > > I have a number of classes, each of which should inherit from a > related superclass in another module: > > class A(Super.A): ... > > class B(Super.B): ... > > class C(Super.C): ... > > Is there a way to dynamically determine the value of Super at > runtime? Backgroun

Re: [Tutor] Dynamic inheritance?

2005-11-19 Thread Python
On Sat, 2005-11-19 at 16:45 +0100, Jan Eden wrote: > > Is there a way to dynamically determine the value of Super at runtime? > Background: Depending on certain object attributes which are set during the > object initialization, I need to use a different set of templates for the > respective ob

[Tutor] Dynamic inheritance?

2005-11-19 Thread Jan Eden
Hi, I have a number of classes, each of which should inherit from a related superclass in another module: class A(Super.A): ... class B(Super.B): ... class C(Super.C): ... Is there a way to dynamically determine the value of Super at runtime? Background: Depending on certain obje