mlz wrote:
> I've been playing with the binomial function, and found that in the below
> code, rs *= x does not behave the same way as rs = rs * x. When I set FAIL
> to True, I get a different result. Both results are below.
>
> I had read that the two were equivalent. What am I missing?
>
> th
On Fri, Aug 26, 2016 at 4:40 PM, wrote:
> Precedence, d'oh!
>
> rs *= (n-(i-1))/i
> is equivalent to:
> rs = rs * ((n-(i-1))/i)
>
> not
> rs = rs * (n-(i-1))/i
>
> which is the same as
> rs = ( rs * (n-(i-1)) ) /i
>
>
> Ken Iverson was right. Precedence is a bad i
Precedence, d'oh!
rs *= (n-(i-1))/i
is equivalent to:
rs = rs * ((n-(i-1))/i)
not
rs = rs * (n-(i-1))/i
which is the same as
rs = ( rs * (n-(i-1)) ) /i
Ken Iverson was right. Precedence is a bad idea.
--
https://mail.python.org/mailman/listinfo/python
if FAIL: rs *= (n-(i-1))/i # these should be the same,
This is equal to rs = rs * ((n-(i-1))/i)
else: rs = rs * (n-(i-1))/i # but apparently are not
This is equal to rs = (rs * (n-(i-1)))/i
On Fri, Aug 26, 2016 at 3:20 PM, mlz wrote:
> I've been playing with the binomial f
mlz writes:
> I've been playing with the binomial function, and found that in the
> below code, rs *= x does not behave the same way as rs = rs * x. When
> I set FAIL to True, I get a different result. Both results are below.
>
> I had read that the two were equivalent. What am I missing?
You do
I've been playing with the binomial function, and found that in the below code,
rs *= x does not behave the same way as rs = rs * x. When I set FAIL to True, I
get a different result. Both results are below.
I had read that the two were equivalent. What am I missing?
thanks,
-= miles =-
#!
"Peter Otten" wrote in message news:npn25e$s5n$1...@blaine.gmane.org...
Frank Millman wrote:
As you have to keep the "<", why bother?
If you mean why don't I convert the '<' to '<', the answer is that I do
- I just omitted to say so. However, explicit is better than implicit :-)
Doesn't th
On Tue, Aug 23, 2016 at 11:39 PM, wrote:
> On Tuesday, August 23, 2016 at 6:42:53 AM UTC-7, Chris Angelico wrote:
> > On Tuesday, August 23, 2016 at 4:09:07 PM UTC+3, dimao wrote:
> > > except:
> > >print ('Error')
> >
> >
> > Don't do this.
> >
> > ChrisA
>
> I did that only f
On 8/11/2016 11:55 PM, Lawrence D’Oliveiro wrote:
On Friday, August 12, 2016 at 2:25:05 AM UTC+12, Terry Reedy wrote:
When I read something like "Python finally acquired an event loop in
3.4" I wonder where people have been. The tk event loop has been in
Python perhaps for 2 decades...
As wa
Wentao Liang writes:
> even though I try to upgrade PIP[cid:beb9e7c5-7d98-4506-ba67-9e67890edec1]
>
>
> From: Wentao Liang
> Sent: Sunday, 21 August 2016 4:35:31 PM
> To: python-list@python.org
> Subject: Something wrong with the PIP, lots of friend have the same
Well the language certainly is getting mentioned all over the place
https://yougov.co.uk/news/2016/08/23/parlez-vous-python/
Kindest regards.
Mark Lawrence.
--
https://mail.python.org/mailman/listinfo/python-list
Frank Millman wrote:
>> As you have to keep the "<", why bother?
>
> If you mean why don't I convert the '<' to '<', the answer is that I do
> - I just omitted to say so. However, explicit is better than implicit :-)
Doesn't that make the XML document invalid or changes it in an irreversible
wa
"Peter Otten" wrote in message news:npmti0$qvu$1...@blaine.gmane.org...
Frank Millman wrote:
> At the risk of disappointing some of you, this is how I am going to
> proceed.
'Tis too late for me to stop ;)
> The problem that prompted this thread was the issue of storing '<' and
> '>' i
Frank Millman wrote:
> "Frank Millman" wrote in message news:nplvvl$ci2$1...@blaine.gmane.org...
>
>> Hi all
>
>> I have mentioned in the past that I use XML for storing certain
>> structures 'off-line', and I got a number of comments urging me to use
>> JSON or YAML instead.
>
>> Can anyone o
On Thu, Aug 25, 2016 at 9:23 PM, Frank Millman wrote:
>
> At the risk of disappointing some of you, this is how I am going to proceed.
>
> 4. As I have said already, for good or ill, I am comfortable with my current
> use of XML, so I do not have a pressing need to change to anything else. The
> p
On Saturday, 20 August 2016 19:48:38 UTC+5:30, andrze...@gmail.com wrote:
> prev = None
> for value in main_call():
> if value==prev:
> pass
> else:
> prev = value
> if prev>0:
> print('+v')
> elif prev<0:
> print('-v')
> el
"Frank Millman" wrote in message news:nplvvl$ci2$1...@blaine.gmane.org...
Hi all
I have mentioned in the past that I use XML for storing certain structures
'off-line', and I got a number of comments urging me to use JSON or YAML
instead.
Can anyone offer an alternative which is closer to
On Thu, Aug 25, 2016 at 5:13 PM, Frank Millman wrote:
> "Chris Angelico" wrote in message
> news:CAPTjJmof_sXqax0Ury5LsBEj7cdFv92WiWKbfvAC+bM=hwt...@mail.gmail.com...
>
>> Sounds to me like you have two very different concerns, then. My
>> understanding of "GUI" is that it's a desktop app running
Frank Millman wrote:
> "Chris Angelico" wrote in message
> news:CAPTjJmof_sXqax0Ury5LsBEj7cdFv92WiWKbfvAC+bM=hwt...@mail.gmail.com...
>
>> Sounds to me like you have two very different concerns, then. My
>> understanding of "GUI" is that it's a desktop app running on the user's
>> computer, as o
Julien Kauffmann writes:
> ...
> Is there a way to know which thread had the GIL right before my
> profiling thread acquired it ? Perhaps through a C extension ? I've
> seen such profilers for Linux that take advantage of an ITIMER signal
> to do that. Sadly this is not an option on Windows.
As y
"Chris Angelico" wrote in message
news:CAPTjJmof_sXqax0Ury5LsBEj7cdFv92WiWKbfvAC+bM=hwt...@mail.gmail.com...
Sounds to me like you have two very different concerns, then. My
understanding of "GUI" is that it's a desktop app running on the user's
computer, as opposed to some sort of client/ser
21 matches
Mail list logo