{
    "content": [
        {
            "type": "text",
            "text": "# _queue (pydoc)\n\n**Summary:** queue\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **DESCRIPTION** (3 lines)\n- **CLASSES** (5 lines) — 2 subsections\n  - class Empty (69 lines)\n  - class SimpleQueue (51 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nqueue\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/queue.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### DESCRIPTION\n\nC implementation of the Python queue module.\nThis module is an implementation detail, please do not use it directly.\n\n### CLASSES\n\nbuiltins.Exception(builtins.BaseException)\nEmpty\nbuiltins.object\nSimpleQueue\n\n#### class Empty\n\n|  Exception raised by Queue.get(block=0)/getnowait().\n|\n|  Method resolution order:\n|      Empty\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n\n#### class SimpleQueue\n\n|  Simple, unbounded, reentrant FIFO queue.\n|\n|  Methods defined here:\n|\n|  empty(self, /)\n|      Return True if the queue is empty, False otherwise (not reliable!).\n|\n|  get(self, /, block=True, timeout=None)\n|      Remove and return an item from the queue.\n|\n|      If optional args 'block' is true and 'timeout' is None (the default),\n|      block if necessary until an item is available. If 'timeout' is\n|      a non-negative number, it blocks at most 'timeout' seconds and raises\n|      the Empty exception if no item was available within that time.\n|      Otherwise ('block' is false), return an item if one is immediately\n|      available, else raise the Empty exception ('timeout' is ignored\n|      in that case).\n|\n|  getnowait(self, /)\n|      Remove and return an item from the queue without blocking.\n|\n|      Only get an item if one is immediately available. Otherwise\n|      raise the Empty exception.\n|\n|  put(self, /, item, block=True, timeout=None)\n|      Put the item on the queue.\n|\n|      The optional 'block' and 'timeout' arguments are ignored, as this method\n|      never blocks.  They are provided for compatibility with the Queue class.\n|\n|  putnowait(self, /, item)\n|      Put an item into the queue without blocking.\n|\n|      This is exactly equivalent to `put(item)` and is only provided\n|      for compatibility with the Queue class.\n|\n|  qsize(self, /)\n|      Return the approximate size of the queue (not reliable!).\n|\n|  ----------------------------------------------------------------------\n|  Class methods defined here:\n|\n|  classgetitem(...) from builtins.type\n|      See PEP 585\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n\n### FILE\n\n/usr/lib/python3.10/lib-dynload/queue.cpython-310-x8664-linux-gnu.so\n\n"
        }
    ],
    "structuredContent": {
        "command": "_queue",
        "section": "",
        "mode": "pydoc",
        "summary": "queue",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 5,
                "subsections": [
                    {
                        "name": "class Empty",
                        "lines": 69
                    },
                    {
                        "name": "class SimpleQueue",
                        "lines": 51
                    }
                ]
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}