[issue33573] statistics.median does not work with ordinal scale

2018-05-21 Thread W deW
W deW <felixfilici...@gmail.com> added the comment: Changing the documentation in tis way seems to me an excellent and easy way to solve the issue. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33573] statistics.median does not work with ordinal scale

2018-05-18 Thread W deW
New submission from W deW <felixfilici...@gmail.com>: The 0.5-quantile or median is defined for ordinal, interval, and ratio scales. An Enumerator as derived from Enum and extended with rich comparison methods implements an ordinal scale. Therefore calculating the median over

[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread W deW
W deW added the comment: Thanks for the ref to issue14029. I think I see how it works. As long as the object's __dict__ accepts the attributeName as a key, it needs not be a valid string nor a string at all. Though the latter *is* checked for, and that in turn can be circumvented by adding

[issue25205] setattr accepts invalid identifiers

2015-09-21 Thread W deW
New submission from W deW: An identifier is defined by identifier ::= (letter|"_") (letter | digit | "_")* setattr accepts identifiers that do not meet this criterion: Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32 Type "hel