Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.086 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Sort': 0.16; 'subject:dictionaries': 0.16; 'tempfile': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'file,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'asked': 0.31; 'easier': 0.31; 'yesterday': 0.31; 'file': 0.32; 'another': 0.32; 'problem.': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'functions.': 0.36; 'module.': 0.36; 'doing': 0.36; 'jason': 0.38; 'how': 0.40; 'worry': 0.60; 'most': 0.60; 'temporary': 0.65; 'mar': 0.68; 'guaranteed': 0.75; '2015': 0.84; "else's": 0.84; 'colleague': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=kw3fe0JHQwwGE3JljpIfWTK0BWHAODJL8nc7WkX0E5g=; b=Veset/m0kGGjHDD+vpuK529Zyd5J+lGp+9KfaNGmfCH73VKItnni65DpdCshuLCAxZ 5gxcBC5mhoQjW9v6WKDwbEOc3O+3DmZbwE7m9snRxqbjuVatGArgVVMjDpRm+2Datukg nDyErFhig3wh7kU+GU/ysg5km35O6hACE+QfvkoDYtTp8aPcEG0KLm5K6556qNOwcEN0 5x/GSEmyLnzltsdkMAwMyWNnL5qEw4T26n4caHHsJd06xkKEIVXwDBbhcNIfRUzySNi3 +pWUWHPzfDOxoNfgls2m3/atuf1ruyP2CImttjQadMpkuKpc1yd7ewxqEbJ91wm2H3Cn 2wOw== MIME-Version: 1.0 X-Received: by 10.107.128.219 with SMTP id k88mr2327958ioi.27.1425394249899; Tue, 03 Mar 2015 06:50:49 -0800 (PST) In-Reply-To: References: <946797be-10e6-433b-9411-2db0d5697ac8@googlegroups.com> Date: Wed, 4 Mar 2015 01:50:49 +1100 Subject: Re: Sort list of dictionaries From: Chris Angelico Cc: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425394252 news.xs4all.nl 2829 [2001:888:2000:d::a6]:50891 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86847 On Wed, Mar 4, 2015 at 1:45 AM, Jason Friedman wrote: > I appreciate > how Python makes my job easier by doing much of my work for me. A > colleague yesterday asked how I guaranteed my temporary file names > would not collide with another file, and my answer was I don't have to > worry about it, someone else figured it out with the tempfile module. Though in that case, Python isn't actually the one doing most of the work - the tempfile module handballs responsibility to the lower-level functions. But yes, there's HEAPS that you don't have to worry about, because it's Someone Else's Problem. ChrisA