Message194233
The implementation of median and mode families of functions as classes is clever, but I am not sure it is a good idea to return something other than an instance of the class from __new__(). I would prefer to see a more traditional implementation along the lines:
class _mode:
def __call__(self, data, ..):
..
def collate(self, data, ..):
..
mode = _mode() |
|
Date |
User |
Action |
Args |
2013-08-03 03:22:00 | belopolsky | set | recipients:
+ belopolsky, gregory.p.smith, ronaldoussoren, pitrou, steven.daprano |
2013-08-03 03:22:00 | belopolsky | set | messageid: <1375500120.19.0.896650033196.issue18606@psf.upfronthosting.co.za> |
2013-08-03 03:22:00 | belopolsky | link | issue18606 messages |
2013-08-03 03:21:59 | belopolsky | create | |
|