Re: Getting an objetcs dict?

2008-09-01 Thread alex23
On Sep 2, 4:31 am, ssecorp <[EMAIL PROTECTED]> wrote: > X.__dict__() and ngot a dict of its variables. > > Now i get errors doing this. what am i doing wrong? The immediate problem is you're not reading the error messages. >>> X.__dict__() Traceback (most recent call last): File "", line 1, in

Re: Getting an objetcs dict?

2008-09-01 Thread Bruno Desthuilliers
ssecorp a écrit : I did nce (I think). class X X.__dict__() and ngot a dict of its variables. Now i get errors doing this. what am i doing wrong? cf Wojtek's answer. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting an objetcs dict?

2008-09-01 Thread Wojtek Walczak
On Mon, 1 Sep 2008 11:31:42 -0700 (PDT), ssecorp wrote: > I did nce(I think). > > class X > > X.__dict__() and ngot a dict of its variables. > > Now i get errors doing this. what am i doing wrong? You're not asking smart questions: http://www.catb.org/~esr/faqs/smart-questions.html HINT: the attr

Getting an objetcs dict?

2008-09-01 Thread ssecorp
I did nce(I think). class X X.__dict__() and ngot a dict of its variables. Now i get errors doing this. what am i doing wrong? -- http://mail.python.org/mailman/listinfo/python-list