Encapsulation, inheritance and polymorphism

Chris Angelico rosuav at gmail.com
Mon Jul 23 18:15:45 CEST 2012


On Tue, Jul 24, 2012 at 2:18 AM, Albert van der Horst
<albert at spenarnc.xs4all.nl> wrote:
> Example from recipee's:
>
> Stirr until the egg white is stiff.
>
> Alternative:
> Stirr egg white for half an hour,
> but if the egg white is stiff keep your spoon still.
>
> (Cooking is not my field of expertise, so the wording may
> not be quite appropriate. )

Method.
Take egg white from refrigerator.
Put egg white into mixing bowl.
Stir for 30 minutes.
Stir the egg white.
Stir the egg white until stirred.

That's valid code, incidentally. Not Python code, but it is
executable. And it includes a useless count-down-to-zero loop.

ChrisA



More information about the Python-list mailing list