-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed as not planned
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Note: this is less of a feature or enhancement, and more of a technical debt refactor - however, I don't see an Issue option for "Refactoring," so this is the closest label.
The __init__ method of queue.Queue passes in the maxsize argument to the _init method:
Lines 34 to 36 in ee40b3e
| def __init__(self, maxsize=0): | |
| self.maxsize = maxsize | |
| self._init(maxsize) |
but the _init method does not actually use the maxsize argument at all:
Lines 205 to 209 in ee40b3e
| # Initialize the queue representation | |
| def _init(self, maxsize): | |
| self.queue = deque() | |
| def _qsize(self): |
Pitch
Remove this unused maxsize argument.
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement