@@ -16,8 +16,9 @@ availability of thread support in Python; see the :mod:`threading`
1616module.
1717
1818The module implements three types of queue, which differ only in the order in
19- which the entries are retrieved. In a FIFO queue, the first tasks added are
20- the first retrieved. In a LIFO queue, the most recently added entry is
19+ which the entries are retrieved. In a :abbr: `FIFO ( first-in, first-out ) `
20+ queue, the first tasks added are the first retrieved. In a
21+ :abbr: `LIFO ( last-in, first-out ) ` queue, the most recently added entry is
2122the first retrieved (operating like a stack). With a priority queue,
2223the entries are kept sorted (using the :mod: `heapq ` module) and the
2324lowest valued entry is retrieved first.
@@ -27,14 +28,16 @@ The :mod:`queue` module defines the following classes and exceptions:
2728
2829.. class :: Queue(maxsize=0)
2930
30- Constructor for a FIFO queue. *maxsize * is an integer that sets the upperbound
31+ Constructor for a :abbr: `FIFO ( first-in, first-out ) ` queue. *maxsize * is
32+ an integer that sets the upperbound
3133 limit on the number of items that can be placed in the queue. Insertion will
3234 block once this size has been reached, until queue items are consumed. If
3335 *maxsize * is less than or equal to zero, the queue size is infinite.
3436
3537.. class :: LifoQueue(maxsize=0)
3638
37- Constructor for a LIFO queue. *maxsize * is an integer that sets the upperbound
39+ Constructor for a :abbr: `LIFO ( last-in, first-out ) ` queue. *maxsize * is
40+ an integer that sets the upperbound
3841 limit on the number of items that can be placed in the queue. Insertion will
3942 block once this size has been reached, until queue items are consumed. If
4043 *maxsize * is less than or equal to zero, the queue size is infinite.
0 commit comments