list.clear() missing?!?
Sion Arrowsmith
siona at chiark.greenend.org.uk
Thu Apr 13 13:21:55 EDT 2006
Fredrik Lundh <fredrik at pythonware.com> wrote:
>except that arguments along the line of "if the syntax is not obj.method(),
>it's not OO enough" are likely to be mostly ignored.
>
>(nobody's going to be impressed by yet another "len(obj) isn't OO" variant)
Does that suggest that what's needed is clear(obj) and __clear__
methods? 8-)
--
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list
mailing list