This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients multiks2200, rhettinger
Date 2021-04-23.19:57:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619207846.59.0.227200154878.issue43911@roundup.psfhosted.org>
In-reply-to
Content
Here's a more compact version of the variant with an underlying dict:

    class MyQueue(Queue):
        def _init(self, maxsize):
            self.end = 0
            self.q = {}
        def _qsize(self):
            return len(self.q)
        def _put(self, x):
            self.q[self.end] = x
            self.end += 1
        def _get(self):
            i = self.end - len(self.q)
            return self.q.pop(i)
History
Date User Action Args
2021-04-23 19:57:26rhettingersetrecipients: + rhettinger, multiks2200
2021-04-23 19:57:26rhettingersetmessageid: <1619207846.59.0.227200154878.issue43911@roundup.psfhosted.org>
2021-04-23 19:57:26rhettingerlinkissue43911 messages
2021-04-23 19:57:26rhettingercreate