| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:17f46b7a-e507-cf01-b0e6-0c46e52629fb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D69A:E9480:105B2FA:15F0BB1:6A62C4DF |
| html-safe-nonce | 128dec1949183a74936b6c1dd1aee875bd21a9ec6b253f6d878eb06498220139 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjlBOkU5NDgwOjEwNUIyRkE6MTVGMEJCMTo2QTYyQzRERiIsInZpc2l0b3JfaWQiOiI0NjQyMjM3Nzg5MDM2MDA0NTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | adaeba3900b85086ddf530b4ea432be6777db3b10e889da1ad88f057b7fe2a6b |
| hovercard-subject-tag | pull_request:729326365 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/28230/files |
| twitter:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| og:image:alt | Make the _ss() function exact.
Also improve the speed:
$ python -m timeit -r 11 -s 'from statistics import variance' -s 'from random import random, seed' -s 'seed(8564399)' ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/28230/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F28230%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F28230%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/28230/files |
| Reload | https://github.com/python/cpython/pull/28230/files |
| Reload | https://github.com/python/cpython/pull/28230/files |
| Please reload this page | https://github.com/python/cpython/pull/28230/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/28230/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.4k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| rhettinger | https://github.com/rhettinger |
| python:main | https://github.com/python/cpython/tree/main |
| rhettinger:stats_exact_ss | https://github.com/rhettinger/cpython/tree/stats_exact_ss |
|
Conversation
9
| https://github.com/python/cpython/pull/28230 |
|
Commits
12
| https://github.com/python/cpython/pull/28230/commits |
|
Checks
0
| https://github.com/python/cpython/pull/28230/checks |
|
Files changed
| https://github.com/python/cpython/pull/28230/files |
| Please reload this page | https://github.com/python/cpython/pull/28230/files |
|
bpo-20499: Rounding error in statistics.pvariance
| https://github.com/python/cpython/pull/28230/files#top |
|
Show all changes
12 commits
| https://github.com/python/cpython/pull/28230/files |
|
0a1d350
Incorrect first draft
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/0a1d35050453aeda84c42c5acf1cfa326ed837d0 |
|
d8714cc
Exact ss
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/d8714ccde4e13b382c6fef76881fb3460f127461 |
|
2108d4d
Add test
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/2108d4dfd76cb11112500c14f3c644630adc1de8 |
|
da6c6cb
Add blurb
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/da6c6cb8712697f0510c6c7066f5253af76b448d |
|
69387c6
Remove superfluous comment
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/69387c6d6fa205c38fe44f9a58781cbc3f6425c0 |
|
39973fd
Add another test
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/39973fd60a04c0feebeeaed59b882168213ab87b |
|
829d5ec
Improve clairity
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/829d5ecd8318243d905e79751d71a5d428de6329 |
|
cc78aaf
Beautify the order of terms
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/cc78aaf86d6818e5aafaee4353babea614bb5c60 |
|
c0b1560
Removed unused "start" argument from internal function
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/c0b156043308baef9f3115e6031444defcce1895 |
|
c746482
Modernize and speed-up _exact_ratio() internal function
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/c74648287fa56bbe5755b23df600b0cb4f246951 |
|
e7c46fa
Remove unnecessary sort
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/e7c46fa5b93e117dbedc6e184ad797835c34ffd0 |
|
117ad6b
Add accuracy comments to stdev() and pstdev().
rhettinger Sep 8, 2021
| https://github.com/python/cpython/pull/28230/commits/117ad6b0d7cb52b2808d2a9ada87afee7a0e8924 |
|
Clear filters
| https://github.com/python/cpython/pull/28230/files |
| Please reload this page | https://github.com/python/cpython/pull/28230/files |
| Please reload this page | https://github.com/python/cpython/pull/28230/files |
|
statistics.py
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
test_statistics.py
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
2021-09-08-01-19-31.bpo-20499.tSxx8Y.rst
| https://github.com/python/cpython/pull/28230/files#diff-29f00ff7e7095d9f858258011c5de51b62f7a5d33695ba587e864e3e194b1a55 |
| Lib/statistics.py | https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
View file
| https://github.com/rhettinger/cpython/blob/117ad6b0d7cb52b2808d2a9ada87afee7a0e8924/Lib/statistics.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28230/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
|
| https://github.com/python/cpython/pull/28230/files#diff-688235e5e23f6bc4ed2cbc487b0ec9adf0334f0ab31b8a115c457c82bf011b0a |
| Lib/test/test_statistics.py | https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
View file
| https://github.com/rhettinger/cpython/blob/117ad6b0d7cb52b2808d2a9ada87afee7a0e8924/Lib/test/test_statistics.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28230/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
|
| https://github.com/python/cpython/pull/28230/files#diff-15a8bbdc9741c107c62dd8020ce17da17e8042f89d20a1c92e12d7a1e77b62bb |
| Misc/NEWS.d/next/Library/2021-09-08-01-19-31.bpo-20499.tSxx8Y.rst | https://github.com/python/cpython/pull/28230/files#diff-29f00ff7e7095d9f858258011c5de51b62f7a5d33695ba587e864e3e194b1a55 |
|
View file
| https://github.com/rhettinger/cpython/blob/117ad6b0d7cb52b2808d2a9ada87afee7a0e8924/Misc/NEWS.d/next/Library/2021-09-08-01-19-31.bpo-20499.tSxx8Y.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28230/{{ revealButtonHref }} |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |