-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.
Thanks again,
Dave
Saju Pillai wrote:
On 28-May-08, at 9:49 PM, Gary Herron wrote:
Dave Challis wrote:
Hi,
Just wondering if
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
--
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Just wondering if there's a way to iterate through all variables which
an object has set?
Specifically, I'm using the OptionParser module, which returns an
options object, containing all command line options as object variables.
I'd like to
Dave Challis wrote:
Hi,
Just wondering if there's a way to iterate through all variables which
an object has set?
Specifically, I'm using the OptionParser module, which returns an
options object, containing all command line options as object variables.
I'd like to iterate over these rather
On 28-May-08, at 9:49 PM, Gary Herron wrote:
Dave Challis wrote:
Hi,
Just wondering if there's a way to iterate through all variables
which
an object has set?
Specifically, I'm using the OptionParser module, which returns an
options object, containing all command line options as object