Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49383 > unrolled thread
| Started by | Robert Kern <robert.kern@gmail.com> |
|---|---|
| First post | 2013-06-28 17:19 +0100 |
| Last post | 2013-06-28 17:19 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: ? get negative from prod(x) when x is positive integers Robert Kern <robert.kern@gmail.com> - 2013-06-28 17:19 +0100
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Date | 2013-06-28 17:19 +0100 |
| Subject | Re: ? get negative from prod(x) when x is positive integers |
| Message-ID | <mailman.3965.1372436407.3114.python-list@python.org> |
On 2013-06-28 16:26, Vincent Davis wrote: > @Joshua > "You are using numpy.prod()" > Wow, since sum([1,2,3,4]) worked I tried prod([1,2,3,4]) and got the right > answer so I just used that. Confusing that it would use numpy.prod(), I realize > now there is no python prod(). At no point do I "import numpy" in my code. The > seems to be a result of using ipython, or at least how I am using it "ipython > notebook --pylab inline". The --pylab option will do the following import: from matplotlib.pyplot import * That includes a "from numpy import *" in there. -- 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 top | Article view | comp.lang.python
csiph-web