Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Using tuple as parameter to a function Date: Tue, 10 Nov 2015 02:24:53 +1100 Lines: 10 Message-ID: References: <87io5b5m1b.fsf@Equus.decebal.nl> <87egfz5i9x.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 8MHHHxp57Z+beP3cWpXMIwjREyceEjMz4ZujJDafs1Jw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'recommends': 0.09; 'clear.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iteration': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'shorten': 0.16; 'values:': 0.16; 'variable.': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'otherwise,': 0.20; 'saying': 0.22; 'am,': 0.23; 'header:In-Reply- To:1': 0.24; 'coding': 0.27; 'message-id:@mail.gmail.com': 0.27; 'necessary,': 0.29; "i'd": 0.31; 'usually': 0.33; 'shorter': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'something': 0.35; "isn't": 0.35; 'but': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'names': 0.38; 'your': 0.60; 'skip:n 10': 0.62; 'cecil': 0.84; 'chrisa': 0.84; 'descriptive': 0.84; 'subject:Using': 0.84; 'westerhof': 0.84; 'to:none': 0.91 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=+6x3lvGm80aEa+5rrHleqggoYUwv5xIo39BgEHBTPSM=; b=B4PVQxQq5dBxcctpXALne2NVlHs6NK07KdxktGKgiigSeVf3avkZBAVGWA5RKiLtyd CQY5opTj0yt1oF2zAuq1lWLhHn4EttRDRPtiu3r635pSehzyivPM1DeDjoNJWCDjB4i9 Hx4hm33t9ADnNhNYhP74A3bPneSf/eS6hyQxhtCue5vrNis8sZr2Ta5Nx7GOUnVpe90z /jBQ8+g1a5jLD9Z5sm1E3QKbmEmsT16FeUS4Bh+iaws3tie2n+sL/bhsV51nI89JrQxi aOXy+7OfYfXSjCTMF+os2cfd5YxHxWyc3TPAO7whWQtnPHQfrfiLZOGxVFOK4T/JfA8x BcaQ== X-Received: by 10.107.16.84 with SMTP id y81mr17160316ioi.19.1447082693196; Mon, 09 Nov 2015 07:24:53 -0800 (PST) In-Reply-To: <87egfz5i9x.fsf@Equus.decebal.nl> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98536 On Tue, Nov 10, 2015 at 2:01 AM, Cecil Westerhof wrote: > for no_of_threads, no_of_records in values: Beautiful! Though I'd shorten the names to just "threads" and "records"; saying "number of X" isn't usually necessary, plus, the general principle of Huffman coding your names recommends using something shorter for a short-lived iteration variable. But otherwise, that's exactly what I'd be looking at - descriptive and clear. ChrisA