| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:dc197c19-640c-38b0-7277-6d0929a9fc0b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C05A:48523:51201:6ADAE:698E9C9E |
| html-safe-nonce | 2b137ed141a09ad1f70041e3f214562746e499e0d1fe90fa92182b57ac181260 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDVBOjQ4NTIzOjUxMjAxOjZBREFFOjY5OEU5QzlFIiwidmlzaXRvcl9pZCI6IjQ0MDYwNTg3NTI4OTA4MDU0MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | db4a1ba907e55e41b08c6f43dc027b2fb0011c4fdb067b831c7bf4338d5020ea |
| hovercard-subject-tag | pull_request:139360299 |
| 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/3346/files |
| twitter:image | https://avatars.githubusercontent.com/u/1721820?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1721820?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue14976
TODO:
Add reentrancy test for C version
Update Windows build files
Add docs |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/3346/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F3346%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%2F3346%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/3346/files |
| Reload | https://github.com/python/cpython/pull/3346/files |
| Reload | https://github.com/python/cpython/pull/3346/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/3346/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.5k
| 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
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
| 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 |
| pitrou | https://github.com/pitrou |
| python:master | https://github.com/python/cpython/tree/master |
| pitrou:simple_queue | https://github.com/pitrou/cpython/tree/simple_queue |
|
Conversation
30
| https://github.com/python/cpython/pull/3346 |
|
Commits
29
| https://github.com/python/cpython/pull/3346/commits |
|
Checks
0
| https://github.com/python/cpython/pull/3346/checks |
|
Files changed
| https://github.com/python/cpython/pull/3346/files |
| Please reload this page | https://github.com/python/cpython/pull/3346/files |
|
bpo-14976: Reentrant simple queue
| https://github.com/python/cpython/pull/3346/files#top |
|
Show all changes
29 commits
| https://github.com/python/cpython/pull/3346/files |
|
9c3431b
Add queue.SimpleQueue type
pitrou Sep 3, 2017
| https://github.com/python/cpython/pull/3346/commits/9c3431b0ad489b1a28a25f979c3bd39447b6ea06 |
|
5d2f5cc
Add C version of SimpleQueue
pitrou Sep 4, 2017
| https://github.com/python/cpython/pull/3346/commits/5d2f5ccf09f8fb0b0db44208bb478594f2771bd4 |
|
d3e890c
Docstrings and comments
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/d3e890cd716c9d3b3c84bdb51fbc0f2f3e3f9ef3 |
|
c0a087a
Simplify some code away.
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/c0a087a4a830ea82699db27e4dc52a5c8e091240 |
|
fa67c79
Fix expectation in test
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/fa67c79c48fe21629e99022d1c8c1fec06fe669d |
|
a58acf0
Updated generated files
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/a58acf0a13a9ce7c4e7074100f5e5f38d3fe1eeb |
|
0f86f5c
Try to support --without-threads
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/0f86f5cd501aaebf3d4cef3cc34a52de8a6f16a4 |
|
3d9c709
Fix EINTR-handling logic
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/3d9c7094bdeca34b3fa47ba5dbace4e99d549e68 |
|
5620970
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/56209700aca1ae4956e879d9b6c263281bfec1ea |
|
a76c041
Add qsize(), empty() and __sizeof__()
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/a76c04159b2376aa9cd2ece5b70680e2f9a15855 |
|
bc07e44
Add optional block and timeout args to put(), for compatibility.
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/bc07e44b1e9292ccea8e7395b5d9b6d4566a0f8f |
|
f8fe713
Add put_nowait() and get_nowait() compatibility methods
pitrou Sep 5, 2017
| https://github.com/python/cpython/pull/3346/commits/f8fe7137566e612f1ab8549087a4477236aec57f |
|
3e1b27d
Add reentrancy tests
pitrou Sep 6, 2017
| https://github.com/python/cpython/pull/3346/commits/3e1b27dfc4f5c85bbe38b99e34032e8e2cac6f35 |
|
a250d56
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou Sep 6, 2017
| https://github.com/python/cpython/pull/3346/commits/a250d567b5f9a3cd9dc596d569d0ca119d82ceef |
|
3d761a8
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou Sep 6, 2017
| https://github.com/python/cpython/pull/3346/commits/3d761a87c3aba9da2e88be4de8094b96b5732089 |
|
fdb5379
Try to add _queue module to Visual Studio build files
pitrou Sep 6, 2017
| https://github.com/python/cpython/pull/3346/commits/fdb53799d85d8f32bb38c6f60f2d98fc647ed7d7 |
|
f1d731d
Try to fix compilation on MSVC
pitrou Sep 6, 2017
| https://github.com/python/cpython/pull/3346/commits/f1d731df419c239083319cf5c25859fc3e69e212 |
|
6f66a52
Change import idiom (and fix __all__)
pitrou Sep 6, 2017
| https://github.com/python/cpython/pull/3346/commits/6f66a52278295fded8746283370a318bb1bdec8b |
|
8847e03
Add a test that references to items are not kept longer than they should
pitrou Sep 7, 2017
| https://github.com/python/cpython/pull/3346/commits/8847e03303b206696c43a8cd647efe94a814eb0a |
|
1773aff
Add docs
pitrou Sep 7, 2017
| https://github.com/python/cpython/pull/3346/commits/1773affbd193eebbd5c6e5cb13900e8c5e65f31f |
|
57e6675
Merge branch 'master' into simple_queue
pitrou Sep 7, 2017
| https://github.com/python/cpython/pull/3346/commits/57e66756d1e27f6802541681160088b885f14da1 |
|
4041847
Add NEWS blurb
pitrou Sep 7, 2017
| https://github.com/python/cpython/pull/3346/commits/404184703469dab0d606f258e5dce78627cae712 |
|
16cbd05
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou Dec 19, 2017
| https://github.com/python/cpython/pull/3346/commits/16cbd05e2fe2d8786d7679e9898b2a0ca5e48bef |
|
c75ccf6
Remove obsolete WITH_THREAD guard
pitrou Dec 19, 2017
| https://github.com/python/cpython/pull/3346/commits/c75ccf6a6b1a42a1986f6967b0f85484178e8b85 |
|
c3aeb82
Merge branch 'master' into simple_queue
pitrou Jan 15, 2018
| https://github.com/python/cpython/pull/3346/commits/c3aeb82f300fb7c083baac8986b6a4df76260476 |
|
c963121
Update clinic file
pitrou Jan 15, 2018
| https://github.com/python/cpython/pull/3346/commits/c963121fa8133168fc9229eea5cfcfca8c5aa053 |
|
3337e24
Address review comments
pitrou Jan 15, 2018
| https://github.com/python/cpython/pull/3346/commits/3337e2496a9819ebca268e47afc3bd48af8e2f80 |
|
3646e99
Use Argument Clinic for __new__
pitrou Jan 15, 2018
| https://github.com/python/cpython/pull/3346/commits/3646e990789ccd9120819b000d4b8bd97bb5c570 |
|
0d03ff5
Remove __sizeof__ implementation as suggested by Serhiy
pitrou Jan 15, 2018
| https://github.com/python/cpython/pull/3346/commits/0d03ff5d06bf22ab380ac8f1a14247de8c8609e6 |
|
Clear filters
| https://github.com/python/cpython/pull/3346/files |
| Please reload this page | https://github.com/python/cpython/pull/3346/files |
| Please reload this page | https://github.com/python/cpython/pull/3346/files |
|
queue.rst
| https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
|
queue.py
| https://github.com/python/cpython/pull/3346/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d |
|
test_queue.py
| https://github.com/python/cpython/pull/3346/files#diff-aa2555f5532a7deb4b049d0b1f6b45f79bdcc9e4479548d930c09b2720fe0181 |
|
2017-09-07-19-12-47.bpo-14976.dx0Zxb.rst
| https://github.com/python/cpython/pull/3346/files#diff-3d9c796fbf54db7bb2742959072c27ec974160d8aad6e4c547dfa4c1bb96e593 |
|
_queuemodule.c
| https://github.com/python/cpython/pull/3346/files#diff-c54ccb67f4d6326cd15e61b01ca0d3137a6a8e568dc8bc2cc1b923ec8d1f6aac |
|
_queuemodule.c.h
| https://github.com/python/cpython/pull/3346/files#diff-b37cb4929ccbcfc72c89f4285cce646cda11c91e60cfa8b5271dbd06b1763941 |
|
_queue.vcxproj
| https://github.com/python/cpython/pull/3346/files#diff-a49914cccc03dcc7c4d1a659934df7c9c51cc523c7032165995bb6ce2860e898 |
|
_queue.vcxproj.filters
| https://github.com/python/cpython/pull/3346/files#diff-e5c252d5b0958c11efe59691e179b01d4565c99de370ce36fabda6b66c230771 |
|
pcbuild.proj
| https://github.com/python/cpython/pull/3346/files#diff-36143ac3d62d4f210bf836dcc3104c7474562bca5b02a18aa5d285b4a8373c6e |
|
pcbuild.sln
| https://github.com/python/cpython/pull/3346/files#diff-0ea7ec57310c8f7a74b3bb79e5cd3ee907d47909fb68b7b46e5d257793bdd3bc |
|
pythoncore.vcxproj.filters
| https://github.com/python/cpython/pull/3346/files#diff-9e715828befc9c50c8b483b06d4923cda0db44f57d0c20e6a6d428ba60bfa0c5 |
|
setup.py
| https://github.com/python/cpython/pull/3346/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7 |
| Doc/library/queue.rst | https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
|
View file
| https://github.com/pitrou/cpython/blob/0d03ff5d06bf22ab380ac8f1a14247de8c8609e6/Doc/library/queue.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3346/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
|
| https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
|
| https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
|
| https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
|
| https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
|
| https://github.com/python/cpython/pull/3346/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef |
| Lib/queue.py | https://github.com/python/cpython/pull/3346/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d |
|
View file
| https://github.com/pitrou/cpython/blob/0d03ff5d06bf22ab380ac8f1a14247de8c8609e6/Lib/queue.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3346/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3346/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d |
|
| https://github.com/python/cpython/pull/3346/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d |
|
| https://github.com/python/cpython/pull/3346/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d |
| gpshead | https://github.com/gpshead |
| Jan 15, 2018 | https://github.com/python/cpython/pull/3346/files#r161613582 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3346/files |
| pitrou | https://github.com/pitrou |
| Jan 15, 2018 | https://github.com/python/cpython/pull/3346/files#r161618399 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3346/files |
| Please reload this page | https://github.com/python/cpython/pull/3346/files |
|
| 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 |