← Back to team overview

yade-dev team mailing list archive

Re: checking values of registered attributes

 

Václav Šmilauer said:     (by the date of Tue, 06 Jul 2010 09:19:12 +0200)

> >  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).

great, thanks!

-- 
Janek Kozicki                               http://janek.kozicki.pl/  |



References