gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe] How to iterate over all the records of a block in a trigger


From: Bajusz Tamás
Subject: Re: [GNUe] How to iterate over all the records of a block in a trigger
Date: Sat, 20 Aug 2005 22:15:11 +0200

On Sat, 20 Aug 2005 21:16:14 +0200
Andreas Fromm <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]