Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
queue.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 27, 2026
gh-156476: Ignore timeout in `_PySimpleQueue.get()` when block is false (#156477)
Show description for 45e5b1b
aisk
and
StanFromIreland
authored
45e5b1b
View commit details
Copy full SHA for 45e5b1b
View code at this point
Browse repository at this point
Commits on Jul 25, 2025
Fix Queue.shutdown docs for condition to unblock a join (gh-137088)
rhettinger
authored
ea06ae5
View commit details
Copy full SHA for ea06ae5
View code at this point
Browse repository at this point
Commits on Jul 24, 2025
Fix docs for Queue.shutdown (gh-137028)
rhettinger
authored
2456715
View commit details
Copy full SHA for 2456715
View code at this point
Browse repository at this point
Commits on Apr 10, 2024
gh-117531: Unblock getters after non-immediate queue shutdown (#117532)
Show description for 6bc0b33
EpicWink
authored
6bc0b33
View commit details
Copy full SHA for 6bc0b33
View code at this point
Browse repository at this point
Commits on Mar 13, 2024
gh-96471: Add ShutDown to queue.py '__all__' (#116699)
EpicWink
authored
ba82a24
View commit details
Copy full SHA for ba82a24
View code at this point
Browse repository at this point
Commits on Feb 25, 2024
gh-96471: Correct docs for queue shutdown (#115838)
EpicWink
authored
9402ea6
View commit details
Copy full SHA for 9402ea6
View code at this point
Browse repository at this point
Commits on Feb 10, 2024
gh-96471: Add shutdown() method to queue.Queue (#104750)
Show description for b2d9d13
EpicWink
and
YvesDup
authored
b2d9d13
View commit details
Copy full SHA for b2d9d13
View code at this point
Browse repository at this point
Commits on Apr 14, 2022
gh-90879: Fix missing parameter for put_nowait() (GH-91514)
slateny
authored
0fc3517
View commit details
Copy full SHA for 0fc3517
View code at this point
Browse repository at this point
Commits on Apr 10, 2020
bpo-39481: PEP 585 for a variety of modules (GH-19423)
Show description for 0361556
isidentical
authored
0361556
View commit details
Copy full SHA for 0361556
View code at this point
Browse repository at this point
Commits on Jun 25, 2019
bpo-37394: Fix pure Python implementation of the queue module (GH-14351)
pablogsal
authored
3f5b908
View commit details
Copy full SHA for 3f5b908
View code at this point
Browse repository at this point
Commits on Jan 15, 2018
bpo-14976: Reentrant simple queue (#3346)
Show description for 94e1696
pitrou
authored
94e1696
View commit details
Copy full SHA for 94e1696
View code at this point
Browse repository at this point
Commits on Sep 7, 2017
bpo-31370: Remove support for threads-less builds (#3385)
Show description for a6a4dc8
pitrou
authored and
vstinner
committed
a6a4dc8
View commit details
Copy full SHA for a6a4dc8
View code at this point
Browse repository at this point
Commits on Sep 2, 2014
Issue #22043: time.monotonic() is now always available
Show description for ae58649
vstinner
committed
ae58649
View commit details
Copy full SHA for ae58649
View code at this point
Browse repository at this point
Commits on Aug 10, 2013
Issue #18676: Change 'positive' to 'non-negative' in queue.py put and get
Show description for 7608b60
terryjreedy
committed
7608b60
View commit details
Copy full SHA for 7608b60
View code at this point
Browse repository at this point
Commits on Apr 29, 2012
Issue #14428, #14397: Implement the PEP 418
Show description for ec89539
vstinner
committed
ec89539
View commit details
Copy full SHA for ec89539
View code at this point
Browse repository at this point
Commits on Mar 15, 2012
Issue #14222: Use the new time.steady() function instead of time.time() for
Show description for 3d7c878
vstinner
committed
3d7c878
View commit details
Copy full SHA for 3d7c878
View code at this point
Browse repository at this point
Commits on Jan 9, 2012
Fix nasty typo
rhettinger
committed
7b7caa8
View commit details
Copy full SHA for 7b7caa8
View code at this point
Browse repository at this point
Make the docstring style consistent.
rhettinger
committed
0c5e52f
View commit details
Copy full SHA for 0c5e52f
View code at this point
Browse repository at this point
Improve clarity with keyword argument for block. Move nowait methods together.
rhettinger
committed
61bd729
View commit details
Copy full SHA for 61bd729
View code at this point
Browse repository at this point
Minor code clean-ups and beautifications.
rhettinger
committed
143f51a
View commit details
Copy full SHA for 143f51a
View code at this point
Browse repository at this point
Commits on Jan 7, 2012
Simplify the code using with-statements.
rhettinger
committed
7540427
View commit details
Copy full SHA for 7540427
View code at this point
Browse repository at this point
Commits on Oct 31, 2010
Issue 10110: Let Queue.put recognize a full queue when the maxsize parameter has been reduced.
rhettinger
committed
189316a
View commit details
Copy full SHA for 189316a
View code at this point
Browse repository at this point
Commits on Mar 21, 2009
port the queue change r70405
benjaminp
committed
0ed5245
View commit details
Copy full SHA for 0ed5245
View code at this point
Browse repository at this point
Commits on Mar 6, 2009
Document the suggested alternative to emtpy() and full().
rhettinger
committed
611eaf0
View commit details
Copy full SHA for 611eaf0
View code at this point
Browse repository at this point
Commits on Jun 11, 2008
Merged revisions 64125 via svnmerge from
Show description for 672b803
benjaminp
committed
672b803
View commit details
Copy full SHA for 672b803
View code at this point
Browse repository at this point
Commits on May 11, 2008
Rename Queue module to queue.
Show description for f260e44
avassalotti
committed
f260e44
View commit details
Copy full SHA for f260e44
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.