[Edu-sig] Python Pedagogy

Gregor Lingl glingl at aon.at
Fri Jul 21 20:20:52 CEST 2006



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


> 
> --Dethe
> _______________________________________________
> Edu-sig mailing list
> Edu-sig at python.org
> http://mail.python.org/mailman/listinfo/edu-sig
> 
> 


More information about the Edu-sig mailing list