← Back to team overview

yade-dev team mailing list archive

Re: checking values of registered attributes

 

>  print(O.engines[5].keys())
> 
> would work.
Almost. O.engines[5].dict() will give you yade's attributes and t heir
values as dictionary. O.engines[5].dict().keys() just the attributes.

But be careful, this is yade-specific. For general usage, there is the
dir(O.engines[5]) builtin (which btw works also on modules, scopes,
classes, instances, types etc etc).

Cheers, v.




Follow ups

References