Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!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 21:02:33 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 16 Message-ID: References: NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1447794153 14161 166.84.1.1 (17 Nov 2015 21:02:33 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 17 Nov 2015 21:02:33 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:98941 In fl writes: > correctly. Could you see something useful with variable 'sz'? 'sz' is fewer characters than '(n_iter,)', which may make your code easier to read. The np.zeros() function explicitly accepts an 'int or sequence of ints', so you don't specifically need a sequence. Is the same true for the 'size' keyword argument of np.random.normal()? -- 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"