Any way to loop through object variables?

paul paul at subsignal.org
Thu May 29 09:45:59 EDT 2008


Dave Challis schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ah thanks, vars(...) was exactly what I was after.  I'd come across
> dir() before, but this returns more than I need.
It seems vars() misses class attributes tho...

cheers
  Paul




More information about the Python-list mailing list