On 14Nov2022 19:15, Dennis Lee Bieber <wlfr...@ix.netcom.com> 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 <c...@cskk.id.au> -- https://mail.python.org/mailman/listinfo/python-list