Re: [Tutor] question about __init__ in a class

2006-11-13 Thread Andreas Kostyrka
* shawn bright <[EMAIL PROTECTED]> [061113 23:51]: > hey thanks, did not think about the possible consequences of the use of a > built in as a variable name. Well, the consequences are minimal: a) pylint complains by default about that. b) if you paste code into your function, you might get probl

Re: [Tutor] question about __init__ in a class

2006-11-13 Thread shawn bright
hey thanks, did not think about the possible consequences of the use of a built in as a variable name.-skOn 11/13/06, Andreas Kostyrka < [EMAIL PROTECTED]> wrote:* shawn bright < [EMAIL PROTECTED]> [061113 19:46]:> Hello there all.> i have a class that i need to load some class variables depending

Re: [Tutor] question about __init__ in a class

2006-11-13 Thread Andreas Kostyrka
* shawn bright <[EMAIL PROTECTED]> [061113 19:46]: > Hello there all. > i have a class that i need to load some class variables depending on what is > passed to the class, it would either be set up using one variable or > another. The values for the class variables would be loaded from a database.

Re: [Tutor] question about __init__ in a class

2006-11-13 Thread Kent Johnson
Mike Hansen wrote: > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of shawn bright >> Sent: Monday, November 13, 2006 11:45 AM >> To: tutor-python >> Subject: [Tutor] question about __init__ in a clas

Re: [Tutor] question about __init__ in a class

2006-11-13 Thread shawn bright
thon> Subject: [Tutor] question about __init__ in a class >> Hello there all.> i have a class that i need to load some class variables> depending on what is passed to the class, it would either be> set up using one variable or another. The values for the > class variables would

Re: [Tutor] question about __init__ in a class

2006-11-13 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of shawn bright > Sent: Monday, November 13, 2006 11:45 AM > To: tutor-python > Subject: [Tutor] question about __init__ in a class > > Hello there all. > i have a class tha

[Tutor] question about __init__ in a class

2006-11-13 Thread shawn bright
Hello there all.i have a class that i need to load some class variables depending on what is passed to the class, it would either be set up using one variable or another. The values for the class variables would be loaded from a database. But how it is looked up depends on how its called. Like this