Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98944
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| 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 | <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> |
| 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 | <python-python-list@m.gmane.org> |
| 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 | <c9b5f60f-b1ec-4857-bb02-2748a28b5460@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:98944 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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