Re: 2Q's: How to autocreate instance of class;How to check for membership in a class

2008-06-17 Thread Mark Wooding
asdf <[EMAIL PROTECTED]> wrote: (Presumably nothing to do with the Common Lisp system-definition utility.) > So for example if I know that var1=jsmith. Can I somehow do > var1=User(). Something like this might work. class User (object): def __init__(me, name): me.name = name class Users

Re: 2Q's: How to autocreate instance of class;How to check for membership in a class

2008-06-16 Thread George Sakkis
On Jun 16, 9:16 pm, asdf <[EMAIL PROTECTED]> wrote: > So I'm writing a script which will create several instances of User() > class. I want each instance to be named after the login name > of a user. I don't know beforehand how many users the script will > have to create or how they are named. Rig

2Q's: How to autocreate instance of class;How to check for membership in a class

2008-06-16 Thread asdf
So I'm writing a script which will create several instances of User() class. I want each instance to be named after the login name of a user. I don't know beforehand how many users the script will have to create or how they are named. Right now I've created a dictionary of usernames as keys and obj