New submission from Matti :
statistics.variance also has the same problem.
>>> import statistics
>>> statistics.stdev([1,2])
0.7071067811865476
>>> statistics.stdev([1,2], 3)
0.7071067811865476
>>> statistics.stdev([1,2], 1.5)
0.7071067811865476
should be
Matti added the comment:
If we estimate the mean using a sample we loose one degree of freedom so it
will be divided by N-1, while if we have the mean independent of the sample it
should be divided by N to be unbiased.
i.e.
example 1
sqrt(((1-1.5)²+(2-1.5)²)/(2-1)) = 0.7...
example 3
sqrt
Matti added the comment:
Hi Raymond and Steven!
I'm happy that you are solving this issue but do you have any comment on my
previous answer?
--
___
Python tracker
<https://bugs.python.org/is
Matti added the comment:
>I see what you're trying to do but think that interpretation is surprising
>and is at odds with the existing and intended uses of the *xbar* argument.
>
>The goals were to allow the mean to be precomputed (common case) or to be
>recentered (unco
Matti added the comment:
I meant to write "pre-calculate".
--
___
Python tracker
<https://bugs.python.org/issue40855>
___
___
Python-bugs-list mailing
Changes by Matti Katila:
--
components: None
severity: normal
status: open
title: openpty does not give bidirectional pipe
type: behavior
versions: Python 2.5
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
New submission from Matti Katila:
http://rafb.net/p/t8cqSt71.html
--
nosy: +mudyc
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1239>
__
___
Pyth
Matti Katila added the comment:
Linux Programmer’s Manual for ptmx and pts - pseudo-terminal master and
slave states:
"Data written to the slave is presented on the master descriptor as
input. Data written to the master is presented to the slave as input."
The data can be read
Matti Katila added the comment:
Not a real issue - it's a standard behaviour of tty.
Fix is to set -icanon:
m,s = os.openpty()
s = os.ttyname(s)
os.system( 'stty cs8 -icanon -echo < %s' % s )
see, http://www.eulogika.net/download/eutalk_20040302/pymouse.html
The issue
New submission from Matti Punkeri:
Python seg faults after 20-30 hours. The running Python application is
a Qt based user interface which handles several SSH threads. Backtrace
is attached.
--
files: backtrace.txt
messages: 61558
nosy: mpunkeri
severity: major
status: open
title
Matti Punkeri added the comment:
And the program is running on SuSE Linux, 2.6.11.4-20a-default, gcc
version 3.3.5
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Matti Mäki added the comment:
Changed the error message as suggested by
http://bugs.python.org/issue14897#msg161493
Also made similar change to struct.pack_into
--
keywords: +patch
nosy: +makimat
Added file: http://bugs.python.org/file27679/issue14897.patch
Matti Mäki added the comment:
A second try, now taking into account buffer and offset params in pack_into.
--
Added file: http://bugs.python.org/file27689/issue14897-2.patch
___
Python tracker
<http://bugs.python.org/issue14
Matti Mäki added the comment:
I filled up the contributor form and gave it to Petri Lehtinen 2012-10-22
--
___
Python tracker
<http://bugs.python.org/issue14
14 matches
Mail list logo