New submission from Nick Coghlan:

Issue 20478 suggests ensuring that even weight/frequency mappings like 
collections.Counter are consistently handled as iterables in the current 
statistics module API.

However, it likely makes sense to provide public APIs that support efficiently 
working with such weight/frequency mappings directly, rather than requiring 
that they be expanded to a full iterable all the time.

One possibility would be to provide parallel APIs with the _map suffix, similar 
to the format() vs format_map() distinction in the string formatting APIs.

----------
components: Library (Lib)
messages: 209931
nosy: gregory.p.smith, ncoghlan, oscarbenjamin, stevenjd, wolma
priority: normal
severity: normal
stage: needs patch
status: open
title: Efficiently support weight/frequency mappings in the statistics module
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20479>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to