On 14Nov2022 19:15, Dennis Lee Bieber <[email protected]> wrote:
There is also the minor facet that "x.clear" can be bound to a different name...x = [1, 2, 3.145926536, "Pie"] clearx = x.clear x[1, 2, 3.145926536, 'Pie']clearx() x[]
I think the OP would take the stance that this:
clearx = x.clear
is more valid than:
x.clear
which discards the return value of the expression.
Cheers,
Cameron Simpson <[email protected]>
--
https://mail.python.org/mailman/listinfo/python-list
