https://github.com/python/cpython/commit/02d44063960107556b73248b195bb4886ff42b59 commit: 02d44063960107556b73248b195bb4886ff42b59 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: rhettinger <[email protected]> date: 2026-09-20T23:58:41-05:00 summary:
[3.13] gh-154942: Document the kde() data cache logic. (gh-157725) (gh-157885) gh-154942: Document the kde() data cache logic. (gh-157725) (cherry picked from commit 5afcd82089b6b1a6cf62b41a428cbe818b867364) Co-authored-by: Raymond Hettinger <[email protected]> files: M Doc/library/statistics.rst diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 614f5b905a4a2e..89e597a19b2d54 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -309,6 +309,11 @@ However, for reading convenience, most of the examples show sorted sequences. .. image:: kde_example.png :alt: Scatter plot of the estimated probability density function. + Because the returned ``f_hat`` function is typically called many times, + it caches the *data* for performance. To support dynamic datasets, this + cache automatically refreshes whenever the length of the *data* changes. + This allows new samples to be added as they become available. + .. versionadded:: 3.13 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
