iterating over lines in a file
Moshe Zadka
moshez at math.huji.ac.il
Thu Jul 20 14:57:41 EDT 2000
On 20 Jul 2000, Radovan Garabik wrote:
> Moshe Zadka <moshez at math.huji.ac.il> wrote:
> ...
>
> : Preventing world war III, when Python achieves world domination.
> : If C is allowed to achieve world domination, WWIII will be cause by
>
> : if(everything_is_ok = 0) {
> : launch_missile();
> : }
>
> : Whereas since Python wwill achieve world domination,
>
> : if everything_is_ok = 0:
> : launch_missile()
>
> : Is a syntax error, and wil be detected before it is allowed into the
> : automated defense system.
>
> nah... WWIII will be started with this code:
>
> def check_if_there_is_an_attack():
> ....
> if ....:
> return 0
> else:
> return 1
>
> if check_if_there_is_an_attack:
> launch_counterattack()
C won't help you here either:
int check_if_there_is_an_attack()
{
...
}
main()
{
if(check_if_there_is_an_attack)
launch_counterattack();
}
Is just as valid...a pointer to a valid function is never NULL.
--
Moshe Zadka <moshez at math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.
http://advogato.org/person/moshez
More information about the Python-list
mailing list