Liste des Groupes | Revenir à cl python |
Hi,
I am initialising an object via the following:
def __init__(self, config):
self.connection = None
self.source_name = config['source_name']
self.server_host = config['server_host']
However, with a view to asking forgiveness rather thanclass Foo():
permission, is there some simple way just to assign the dictionary
elements which do in fact exist to self-variables?
Les messages affichés proviennent d'usenet.