[Tutor] Address book sort of
Jacob S.
keridee at jayco.net
Thu Dec 16 03:13:36 CET 2004
You know, instead of that long or thing you've set up, you could do this.
if select in [ 'l', 'v', 'V' ]:
> [quote]
> if select == '1' or select == 'v' or select == 'V':
> if file_in_disk in os.listdir('/home/jerimed'): #
change???
> fhandle = open(file_in_disk, 'r') # read mode
> cPickle.load(fhandle) # restore saved
data
> fhandle.close()
> show_contacts()
> elif len(data_holder) > 0:
> show_contacts()
> else:
> is_empty()
> [/quote]
I'd swear that your standard disclaimer changes weekly. : )
Happy Holidays,
Jacob
> Standard disclaimer -
>
> There's probably an easier way to do it, and a more elegant way. Which
> someone will post shortly.
>
> Cheers,
>
> Liam Clarke
More information about the Tutor
mailing list