[Patches] [ python-Patches-825814 ] Add list.copysort()

SourceForge.net noreply at sourceforge.net
Sat Oct 18 02:26:40 EDT 2003


Patches item #825814, was opened at 2003-10-17 19:34
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=825814&group_id=5470

Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add list.copysort()

Initial Comment:
As discussed on py-dev, this returns a sorted copy of a
list while leaving the original intact.

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-10-18 01:26

Message:
Logged In: YES 
user_id=80475

Revised the patch to avoid an unnecessary copy whenever the
underlying object is not referenced anywhere else -- this
occurs in the common use case:  for elem in
d.keys().copysort(): . . .


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=825814&group_id=5470



More information about the Patches mailing list