conditional print statement ?

Stef Mientki S.Mientki-nospam at mailbox.kun.nl
Wed Apr 25 16:03:03 EDT 2007


hello,


As part of a procedure I've a number sequences like this:

<Python>
     if Print_Info: print Datafile.readline()
     else:                Datafile.readline()
</Python>

Is there a more compressed way to write such a statement,
especially I dislike the redundancy "Datafile.readline()".

thanks,
Stef Mientki



More information about the Python-list mailing list