Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: Is there any reason to introduce this intermediate variable (sz)? Date: Tue, 17 Nov 2015 22:33:34 +0000 Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de sq5ptfYxAWD+5hyFfOPXAgYes545IcCf9mVKY2yby5ow== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'edward': 0.09; 'optional': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tuple': 0.09; 'read.': 0.13; 'argument': 0.15; 'explicitly': 0.15; "'size'": 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'sequence.': 0.16; 'subject:)?': 0.16; 'subject:variable': 0.16; 'wrote:': 0.16; 'first.': 0.18; 'variable': 0.18; 'language': 0.19; '>>>': 0.20; '2015': 0.20; 'correctly.': 0.22; 'lawrence': 0.22; 'parameter': 0.22; 'thanks,': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'question': 0.27; 'sequence': 0.27; 'specifically': 0.28; 'function': 0.28; 'accepts': 0.29; 'code': 0.30; '"the': 0.32; 'language.': 0.32; 'useful': 0.33; 'third': 0.33; 'int': 0.33; 'list': 0.34; 'could': 0.35; 'something': 0.35; 'keyword': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'hi,': 0.38; 'to:addr:python.org': 0.40; 'mark': 0.40; 'still': 0.40; 'your': 0.60; 'john': 0.61; 'provide': 0.61; 'charset:windows-1252': 0.62; 'skip:n 10': 0.62; 'our': 0.64; 'subject:there': 0.66; 'necessity': 0.84; 'pythonistas,': 0.84; 'subject:any': 0.84; 'subject:this': 0.85; 'bears': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 195.147.230.164 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: 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:98944 On 17/11/2015 21:27, fl wrote: > On Tuesday, November 17, 2015 at 4:03:05 PM UTC-5, John Gordon wrote: >> In fl <@gmail.com> 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 >> @panix.com B is for Basil, assaulted by bears >> -- Edward Gorey, "The Gashlycrumb Tinies" > > Hi, I get the following for the third parameter of np.random.normal(): > size : int or tuple of ints, optional > > I still don't see the necessity of 'sz'. Thanks, > I don't see the necessity for you to bombard this list with question after question without bothering to try and provide your own answers first. Did your last skivvy die of overwork? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence