[Tutor] Is there a better way ?

Dave S pythontut at pusspaws.net
Thu May 20 15:10:44 EDT 2004


A couple of hundred lines of code later ... things are getting easier ...

Is there a neater way of saying ...

syncerr=False
    if 'SyncErr' in file:
    syncerr=True

I've got a few of these & they seems a bit of a mess !

Dave

PS Why was I scared of OOP - It rocks :-)




More information about the Tutor mailing list