example-code-2e icon indicating copy to clipboard operation
example-code-2e copied to clipboard

Example code for Fluent Python, 2nd edition (O'Reilly 2022)

Results 35 example-code-2e issues
Sort by recently updated
recently updated
newest added

- Added new notebook `04-text-byte/04-text-byte.ipynb` from following along with examples in the text (executed using Python 3.10) - Minor updates to `04-text-byte/README.rst` for 2nd Edition updates - Ignore `cafe.txt` (generated...

- Updates to `03-dict-set/03-dict-set.ipynb` to include 2nd edition updates (executed using Python 3.10) - Minor updates to `03-dict-set/README.md` to target script in `03-dict-set/`

On 2ed the chapter "Object references, mutability and recycling" from 8 to 6 This commit fixes the readme with the new chapter number

This PR fixes small typo in the description of examples for Chapter 21.

Change from using different way to get suit value than `rank_value` ```py suit_values = dict(spades=3, hearts=2, diamonds=1, clubs=0) def spades_high(card): rank_value = FrenchDeck.ranks.index(card.rank) return rank_value * len(suit_values) + suit_values[card.suit] ```...

- Includes content updates from working through Chapter 03-06

When downloading the flags in ``` async def get_flag(client: AsyncClient, cc: str) -> bytes: 4 url = f'{BASE_URL}/{cc}/{cc}.gif'.lower() resp = await client.get(url, timeout=6.1, follow_redirects=True) 5 return resp.read() 6 ``` it...

Hi Luciano, I am playing a bit with the [`spinner_async.py`](https://github.com/fluentpython/example-code-2e/blob/master/19-concurrency/spinner_async.py) example, and I am wondering why the execution finishes normally when I comment the `spinner.cancel()` line in the `supervisor` function....