[Edu-sig] Python Pedagogy

Dethe Elza delza at livingcode.org
Fri Jul 21 20:28:20 CEST 2006


Gregor Lingl wrote:
> 
> 
> Dethe Elza schrieb:
> 
>> class Anthro(object):
>>
>>      def __init__(my):
>>          I = me = my
>>          my.self = me
>>          my.truism = (phrase for phrase in ['I am', 'that which I am'])
>>
>>      def __repr__(my):
>>          return my.truism.next()
>>
>>      def who(my):
>>          I = me = my
>>          print me, my.self and I
>>
>> if __name__ == '__main__': Anthro().who()
>>
> 
> It's really a pity that despite thus much ego-centrism
> that poor Anthro couldn't say onother time who his is.
> 
> Gregor

Yes, Anthro simulates the transience of existence.  %-)

--Dethe


More information about the Edu-sig mailing list