Alan Gauld <alan.ga...@btinternet.com> Wrote in message: >>> (not a copy!) to the sorted item. >> >> sorted() does make a copy of the list: > > Really? That's a bummer. > I assumed (never assume!) that it returned a reference to the original. > I really, really, hate the way Python handles this :-( >
It's not clear to me what you would change. Would you only provide methods (like sort) that mangle their object? -- DaveA _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor