| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2839a08c-4021-ea7c-eb00-bd3018f20e5f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A432:2AEA36:14C64BB:1BAD2A4:696ADDD1 |
| html-safe-nonce | b185b4e78bde6d1f4b161c8739e60b81eefed5b984d4346e8e7839f8db2420f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDMyOjJBRUEzNjoxNEM2NEJCOjFCQUQyQTQ6Njk2QURERDEiLCJ2aXNpdG9yX2lkIjoiMjgyODM0Njk3MzkwOTM0MzY5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 313a459edbc6c369d3bcd7b6dc08734b6cd36379e1add54f8c0e5bc9c7ffca23 |
| hovercard-subject-tag | pull_request:422348556 |
| 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/20339/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 | https://bugs.python.org/issue40755 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/20339/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20339%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F20339%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/20339/files |
| Reload | https://github.com/python/cpython/pull/20339/files |
| Reload | https://github.com/python/cpython/pull/20339/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/20339/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| 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.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/20339/files |
|
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
| 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:master | https://github.com/python/cpython/tree/master |
| rhettinger:counter_subset | https://github.com/rhettinger/cpython/tree/counter_subset |
|
Conversation
4
| https://github.com/python/cpython/pull/20339 |
|
Commits
14
| https://github.com/python/cpython/pull/20339/commits |
|
Checks
0
| https://github.com/python/cpython/pull/20339/checks |
|
Files changed
| https://github.com/python/cpython/pull/20339/files |
| Please reload this page | https://github.com/python/cpython/pull/20339/files |
|
bpo-40755: Add missing multiset operations to Counter()
| https://github.com/python/cpython/pull/20339/files#top |
|
Show all changes
14 commits
| https://github.com/python/cpython/pull/20339/files |
|
538878c
Add basic definitions and invariants
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/538878ca9c973adfe56b80212cf16e8101552a8b |
|
ce91225
Neaten-up
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/ce91225470df702eabc8813b94b9334668048477 |
|
c160f82
Add blurb
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/c160f822a629cbab83452b9b0a56495a99e75a5e |
|
987532f
Remove the NotImplemented return values
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/987532ff02846ffb7c162b4d75d6079366823ac3 |
|
6a471a1
Handle iterable inputs. Add some tests
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/6a471a1c021ed48163f2e0e8cfd0b943f36099b6 |
|
db9e0e6
Clean-up section on omitted operations
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/db9e0e6bbf4f36f88a92bc171c3bab4bf51bd428 |
|
160b365
Improve clarity by separating element values
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/160b36561aedc8cca4328bc7e5f69412cd7723fa |
|
9c3e9a6
Add tests. Handle negative values.
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/9c3e9a6f8c426115531d9b971a3865753e696085 |
|
8fc2b87
Isolate the predicate tests with negative counts
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/8fc2b875d817aa167cc8575ef029236714ef71d3 |
|
fdbe0c1
Optimized early-out versions. Beef-up docstrings.
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/fdbe0c182c65923c7b60ee761e8c4286857fd3d5 |
|
5e20521
Clean-ups and optimization for the common case
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/5e20521516c59f83e19b685525a53b82848b03b6 |
|
19a8b27
Add documentation
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/19a8b2779c0c33c88fcbb1433f6eb7585c882629 |
|
74c471d
Use subset and superset symbols
rhettinger May 24, 2020
| https://github.com/python/cpython/pull/20339/commits/74c471d0662ad2d5ca964a80f01f09d68bacb0fb |
|
f26a84a
Fix typo in docstring
rhettinger May 26, 2020
| https://github.com/python/cpython/pull/20339/commits/f26a84ad26d37720e04eb3867671f8e7a0591342 |
|
Clear filters
| https://github.com/python/cpython/pull/20339/files |
| Please reload this page | https://github.com/python/cpython/pull/20339/files |
| Please reload this page | https://github.com/python/cpython/pull/20339/files |
|
collections.rst
| https://github.com/python/cpython/pull/20339/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
__init__.py
| https://github.com/python/cpython/pull/20339/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
test_collections.py
| https://github.com/python/cpython/pull/20339/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
2020-05-23-18-24-13.bpo-22533.k64XGo.rst
| https://github.com/python/cpython/pull/20339/files#diff-84ed2c6a5f4ca69674ef769c28bdf7d6bc0046238068341c4aa65d23724fb091 |
| Doc/library/collections.rst | https://github.com/python/cpython/pull/20339/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
View file
| https://github.com/rhettinger/cpython/blob/f26a84ad26d37720e04eb3867671f8e7a0591342/Doc/library/collections.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20339/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20339/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
|
| https://github.com/python/cpython/pull/20339/files#diff-5251b40283a63a061147a0ae32017c629d88a95d1c363d4e47f37b7969a4b0e3 |
| Lib/collections/__init__.py | https://github.com/python/cpython/pull/20339/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
View file
| https://github.com/rhettinger/cpython/blob/f26a84ad26d37720e04eb3867671f8e7a0591342/Lib/collections/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20339/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20339/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
| https://github.com/python/cpython/pull/20339/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
|
| https://github.com/python/cpython/pull/20339/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
| Please reload this page | https://github.com/python/cpython/pull/20339/files |
|
| https://github.com/python/cpython/pull/20339/files#diff-c92f871cb9b4aa1583c89f82cd416d58a5d70fff41faf41e45dedf775dbe7713 |
| Lib/test/test_collections.py | https://github.com/python/cpython/pull/20339/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
View file
| https://github.com/rhettinger/cpython/blob/f26a84ad26d37720e04eb3867671f8e7a0591342/Lib/test/test_collections.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20339/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20339/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
| https://github.com/python/cpython/pull/20339/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
| https://github.com/python/cpython/pull/20339/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
|
| https://github.com/python/cpython/pull/20339/files#diff-a2a882635e20e8e9439f090d33513502a7af648286efebfa4e4bc37270c44784 |
| Misc/NEWS.d/next/Library/2020-05-23-18-24-13.bpo-22533.k64XGo.rst | https://github.com/python/cpython/pull/20339/files#diff-84ed2c6a5f4ca69674ef769c28bdf7d6bc0046238068341c4aa65d23724fb091 |
|
View file
| https://github.com/rhettinger/cpython/blob/f26a84ad26d37720e04eb3867671f8e7a0591342/Misc/NEWS.d/next/Library/2020-05-23-18-24-13.bpo-22533.k64XGo.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20339/{{ 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 |