On Sat, Mar 12, 2011 at 5:41 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote: > Why not? IIUC, the current key function creates three objects: the tuple, > the short string, and the int. With the class Yeah, I misread the example. Using cmp_to_key would indeed save quite a lot of memory in this case. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4