[Edu-sig] Python Quiz

Grégoire Dooms dooms at info.ucl.ac.be
Wed Sep 7 21:13:16 CEST 2005


Kirby Urner wrote:

>class Shell:
>
>	def __init__(ghost):
>		pass
>
>	def __repr__(ghost):
>		return 'What famous Japanese cartoon?'
>
>OK that was easy.  So how about:
>
>class Shell (object):
>
>	def __init__(ghost):
>		pass
>
>	def __repr__(ghost):
>		return 'What famous Japanimation?'
>
>Hint:  think "new-style class."
>
>  
>
Is it that new-style classes are to old-style classes what animation is 
to old-style cartoons ?
--
Grégoire


PS: this mailing list is really deviating from "Python in/for education".




More information about the Edu-sig mailing list