Request for feedback on my first Python program

Sean Legassick sean at
Sun Jun 1 02:52:17 CEST 2003

In message <slrnbdeevn.694.andrew-usenet at>, Andrew 
Walkingshaw <andrew-usenet at> writes
>def isMeaningful(line):
>    if line != "" and line[0] != "#":
>        return True
>    else:
>        return False


def isMeaningful(line):
     return line != "" and line[0] != "#";

No offence intended, but I've seen this too often in real code not to 
point out its redundancy here.


Sean K. Legassick
sean at
         informage - - mouthing off from the fairest cape

More information about the Python-list mailing list