book-site
book-site copied to clipboard
Companion Web site for Fluent Python, Second Edition
The following methods are present in the collections.deque class (in the book they are listed as present only in the list class): ``` s.__add__(s2) s.__contains__(e) s.__imul__(n) s.__mul__(n) s.__rmul__(n) s.copy() s.index(e)...
Comparison Table 2-3 is missing the following array.array class methods: ``` s.buffer_info() s.fromunicode(d) s.tounicode() ``` Tested in Python 3.11.4: ``` >>> from array import array >>> dir(list) ['__add__', '__class__', '__class_getitem__',...
There's a problem with markup of this link related to the `` `" `` combination that causes monospace font expanding further than expected. https://github.com/fluentpython/book-site/blob/8546e1be77cf9b680a0bba5d56cfca5aaddb5639/content/extra/internals-of-sets-and-dicts/index.adoc?plain=1#L385
Not sure if this belongs here (could not find a better repo for URL shortener). The link in the footnote on page 372 (chapter 11) leads to "not found" page....
Issue originally reported by @dongzeXD at https://github.com/fluentpython/example-code-2e/issues/15, related to an example in post [Classic Coroutines](https://www.fluentpython.com/extra/classic-coroutines/): ---- In annotations :"Each iteration in thisloop creates a new instance of averager; each is...