Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98944

Re: Is there any reason to introduce this intermediate variable (sz)?

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Is there any reason to introduce this intermediate variable (sz)?
Date 2015-11-17 22:33 +0000
Message-ID <mailman.401.1447799666.16136.python-list@python.org> (permalink)
References <bad9ac66-38aa-4445-a486-6df0e9c7752c@googlegroups.com> <n2g4l9$dqh$1@reader1.panix.com> <c9b5f60f-b1ec-4857-bb02-2748a28b5460@googlegroups.com>

Show all headers | View raw


On 17/11/2015 21:27, fl wrote:
> On Tuesday, November 17, 2015 at 4:03:05 PM UTC-5, John Gordon wrote:
>> In <bad9ac66-38aa-4445-a486-6df0e9c7752c@googlegroups.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is there any reason to introduce this intermediate variable (sz)? fl <rxjwg98@gmail.com> - 2015-11-17 12:51 -0800
  Re: Is there any reason to introduce this intermediate variable (sz)? John Gordon <gordon@panix.com> - 2015-11-17 21:02 +0000
    Re: Is there any reason to introduce this intermediate variable (sz)? fl <rxjwg98@gmail.com> - 2015-11-17 13:27 -0800
      Re: Is there any reason to introduce this intermediate variable (sz)? John Gordon <gordon@panix.com> - 2015-11-17 22:20 +0000
      Re: Is there any reason to introduce this intermediate variable (sz)? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-17 22:33 +0000
  Re: Is there any reason to introduce this intermediate variable (sz)? Dave Farrance <df@see.replyto.invalid> - 2015-11-18 08:05 +0000
  Re: Is there any reason to introduce this intermediate variable (sz)? Terry Reedy <tjreedy@udel.edu> - 2015-11-18 05:02 -0500

csiph-web