Path: csiph.com!goblin2!goblin1!goblin3!goblin.stu.neva.ru!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Is there any reason to introduce this intermediate variable (sz)? Date: Tue, 17 Nov 2015 22:20:39 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 20 Message-ID: References: NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1447798839 27110 166.84.1.1 (17 Nov 2015 22:20:39 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 17 Nov 2015 22:20:39 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:98943 In fl writes: > I still don't see the necessity of 'sz'. Thanks, sz isn't required. You can use (n_iter,) in place of sz. However, as I posted earlier, sz is shorter so it might make your code easier to read. Using sz can also lead to easier code maintenance. If the contents of the tuple were ever to change, it would be much easier to simply change it in once place (the definition of sz), rather than having to edit several different occurrences of (n_iter,) in your code. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"