[issue40855] statistics.stdev ignore xbar argument

2020-06-17 Thread Matti
Matti added the comment: I meant to write "pre-calculate". -- ___ Python tracker <https://bugs.python.org/issue40855> ___ ___ Python-bugs-list mailing

[issue40855] statistics.stdev ignore xbar argument

2020-06-17 Thread Matti
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

[issue40855] statistics.stdev ignore xbar argument

2020-06-11 Thread Matti
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

[issue40855] statistics.stdev ignore xbar argument

2020-06-04 Thread Matti
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

[issue40855] statistics.stdev ignore xbar argument

2020-06-03 Thread Matti
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

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Matti Mäki
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

[issue14897] struct.pack raises unexpected error message

2012-10-23 Thread Matti Mäki
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

[issue14897] struct.pack raises unexpected error message

2012-10-23 Thread Matti Mäki
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

[issue1912] Segmentation fault

2008-01-22 Thread Matti Punkeri
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/

[issue1912] Segmentation fault

2008-01-22 Thread Matti Punkeri
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

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
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

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
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

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
New submission from Matti Katila: http://rafb.net/p/t8cqSt71.html -- nosy: +mudyc __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1239> __ ___ Pyth

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
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/