clear derived list

John Hunter jdhunter at ace.bsd.uchicago.edu
Wed Mar 12 00:41:21 CET 2003


>>>>> "Steven" == Steven Taschuk <staschuk at telusplanet.net> writes:

    Steven> How about using slice assignment?

    Steven> def set(self, seq): self[:] = seq

Yep, that's what I was forgetting.

Thanks,
John Hunter





More information about the Python-list mailing list