| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ae138cb commit 7736b5b
17 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -329,7 +329,7 @@ Glossary | |||
| 329 | 329 | also :term:`immutable`. | |
| 330 | 330 | ||
| 331 | 331 | named tuple | |
| 332 | - Any tuple-like class whose indexable fields are also accessible with | ||
| 332 | + Any tuple subclass whose indexable fields are also accessible with | ||
| 333 | 333 | named attributes (for example, :func:`time.localtime` returns a | |
| 334 | 334 | tuple-like object where the *year* is accessible either with an | |
| 335 | 335 | index such as ``t[0]`` or with a named attribute like ``t.tm_year``). | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ The following modules are documented in this chapter: | |||
| 21 | 21 | math.rst | |
| 22 | 22 | cmath.rst | |
| 23 | 23 | decimal.rst | |
| 24 | + rational.rst | ||
| 24 | 25 | random.rst | |
| 25 | 26 | itertools.rst | |
| 26 | 27 | functools.rst | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,8 +49,9 @@ See the source code for details. The public methods are: | |||
| 49 | 49 | ||
| 50 | 50 | .. method:: Queue.qsize() | |
| 51 | 51 | ||
| 52 | - Return the approximate size of the queue. Because of multithreading semantics, | ||
| 53 | - this number is not reliable. | ||
| 52 | + Return the approximate size of the queue. Note, qsize() > 0 doesn't | ||
| 53 | + guarantee that a subsequent get() will not block, nor will qsize() < maxsize | ||
| 54 | + guarantee that put() will not block. | ||
| 54 | 55 | ||
| 55 | 56 | ||
| 56 | 57 | .. method:: Queue.put(item[, block[, timeout]]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments