Skip to content

Commit f6c2c2c

Browse files
authored
Update README.md
1 parent 119f399 commit f6c2c2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ d.update_atomic("x", lambda v: v + 1) # d now contains 2 under the 'x' key.
110110
```
111111

112112
### ConcurrentQueue
113-
For thread-safe queues, Python offers already a lot of alternatives, even too many, so I'm not going to add another. Please refer to the following:
114-
In the [`queue`](https://docs.python.org/3/library/queue.html) module:
115-
- `queue`,
113+
For thread-safe queues, Python offers already a lot of alternatives, even too many, so I'm not going to add another. Please refer to the following.
114+
115+
In the [`queue`](https://docs.python.org/3/library/queue.html) module, there are the following thread-safe queue classes:
116+
- `SimpleQueue`
116117
- `LifoQueue`,
117118
- `PriorityQueue`
118-
- `SimpleQueue`.
119119

120120
Note these queue collections are thread-safe, although it isn't explicitly clear from their type name, making it **dangerously confusing** for people mistaking the same property to apply to e.g. [`deque`](https://docs.python.org/3/library/collections.html#collections.deque), which is absolutely **not** thread-safe.
121121

0 commit comments

Comments
 (0)