python-distilled
python-distilled copied to clipboard
Resources for Python Distilled (Book)
Page 308, last paragraph: `round(x [, n])` Rounds the result of rounding... Should read: Returns the result Table 10.9 String Operators and Methods `s.format_map(m)` Formats `s` with substitutions taking from...
9.15.9 "Go a directory with a collection of files" Should read: Go to a directory 9.15.11 "copious amounts of information is available" are available ? 9.15.15 dead `return` statement: ```python...
Section 8.14, 2nd paragraph: For example, **is** your package looks like this
The following comment is the fourth line at the beginning of Page 281: ```python # Configuration of logging (occurs one at program startup) ``` Instead of the word "one" above,...
Tom should be Thomas in the last example on pg. 153 . Found by Olivia Nelson (age 9)
In the `comments` generator of section 2.15, the way `t[0]` is used does not seem safe: ```python comments = (t for t in lines if t[0] == '#') # All...
The top code snippet misspells `@classmethod` as `@staticmethod`.
`Inherientance establishes a relationship in the type system where any child class will type-check as the parent class.` This statement seems to be odd corresponding to the example code shown...
Variable names for example sets switch from "names1" and "names2" to "t" and "s" in this section.
Section 5.16, pg. 121, in the positional-only arguments example, `debug` should be after the `/` separator: The signature is: ```diff -def after(seconds, func, debug=False, /, *args, **kwargs): +def after(seconds, func,...