iterating over lines in a file
Radovan Garabik
garabik at center.fmph.uniba.sk.spam
Thu Jul 20 11:24:06 EDT 2000
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()
--
-----------------------------------------------------------
| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__ garabik @ melkor.dnp.fmph.uniba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
More information about the Python-list
mailing list