Re: How to iterate over all the records of a block in a trigger
Bajusz Tamás <[email protected]>
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 20 Aug 2005 21:16:14 +0200 Andreas Fromm <[email protected]> wrote: > Another question about Python. How can I see what kind of object > (which class it corresponds) a referenced object (like self) is? In > perl I just can put a "print $obj;" and I get its class name, but in > python this seems not to work. >>> class x: ... def MyName(self): ... print self.__class__.__name__ ... >>> x().MyName() x >>> y=5 >>> y.__class__ <type 'int'> >>> y.__class__.__name__ 'int' Hope this helps. Bajusz Tamás