Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7768
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Subject | Re: data type and logarithm |
| Date | 2011-06-16 16:21 -0500 |
| Organization | The Church of Last Thursday |
| References | <b583dac8-826e-4bd5-b230-00e667855896@m24g2000yqc.googlegroups.com> <itde1d$lib$1@dough.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.42.1308259331.1164.python-list@python.org> (permalink) |
On 6/16/11 12:20 PM, Terry Reedy wrote: > rho = mp.append(rho, float(r)) # same with entropy) > > does numpy really not let you write Python stype > > rho.append(float(r)) > ? No. numpy arrays are not extensible in-place in general because we use view semantics for slices and similar operations like transpositions. We can't have the underlying memory change out from underneath us. This is one of the worst ways to accumulate values into a numpy array. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
data type and logarithm simona bellavista <afylot@gmail.com> - 2011-06-16 01:37 -0700
Re: data type and logarithm Nobody <nobody@nowhere.com> - 2011-06-16 10:16 +0100
Re: data type and logarithm "afylot@gmail.com" <antonella.garzilli@gmail.com> - 2011-06-16 02:27 -0700
Re: data type and logarithm Peter Otten <__peter__@web.de> - 2011-06-16 13:55 +0200
Re: data type and logarithm Terry Reedy <tjreedy@udel.edu> - 2011-06-16 13:20 -0400
Re: data type and logarithm Robert Kern <robert.kern@gmail.com> - 2011-06-16 16:21 -0500
csiph-web