[Python-ideas] Set Syntax

Mike Graham mikegraham at gmail.com
Tue Nov 23 23:18:57 CET 2010


On Tue, Nov 23, 2010 at 5:16 PM, average <dreamingforward at gmail.com> wrote:
> On Tue, Nov 23, 2010 at 12:59 PM, Guido van Rossum <guido at python.org> wrote:
>>
>> FWIW I'm fine with adding list.clear() to 3.3.
>>
> How about calling it container.clear()?  ;^)
>
> marcos

1) Because that's not how Python's type system works, and
2) Because many containers are immutable?

Mike



More information about the Python-ideas mailing list