Python überprüfen, ob ein Attribut im Unterricht vorhanden ist

if hasattr(obj, 'propertyName'):
	...
M. Alban Landry