← Back to team overview

yade-dev team mailing list archive

Re: checking values of registered attributes

 

Ah, sorry for previous reply... you wanted values, not just variables.

B.

Václav Šmilauer a écrit :
 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.


_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp




--
_______________
Bruno Chareyre
Associate Professor
ENSE3 - Grenoble INP
Lab. 3SR
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________




References