issues Search Results · repo:fluentpython/example-code-2e language:Python
Filter by
19 results
(46 ms)19 results
influentpython/example-code-2e (press backspace or delete to remove)return in finally considered harmful
https://github.com/iritkatriel/finally/blob/main/README.md
3e-prep
ramalho
- Opened on Nov 20, 2024
- #49
Hi!
I was going through script explore1.py from chapter 22, in particular in the init method and I wrote the following code
instead of the code in the script:
self.__data = dict(mapping)
for key, val ...
andyLaurito92
- Opened on Oct 31, 2024
- #48
I believe the pseudocode for object construction on page 843 is somewhat misleading:
def make(the_class, some_arg):
new_object = the_class.__new__(some_arg)
if isinstance(new_object, the_class): ...
kamalfarahani
- Opened on Oct 30, 2024
- #47
Hi Luciano,
In chapter 22 you mention that FrozenJSON.__getattr__() raising a KeyError is not to confusing . However, today I
discovered a side effect from this that is confusing: copy.copy(FrozenJSON({ ...
hayemj
- Opened on Jul 17, 2024
- #46
Dear Ramalho,
I hope you are well. I m writing to suggest an improvement for the “Type Hinting Asynchronous Objects” section in
Chapter 21 for the next edition.
Enhancing Clarity with Examples
I believe ...
kamalfarahani
- Opened on May 5, 2024
- #44
hi. so i know that you probably know this but if there will be a 3rd edition, exapmles 19-13 and 19-12 (and other
examples in chapter 19) need a rework. e.g the mentioned examples actually fail to prove ...
amirreza8002
- 1
- Opened on Apr 10, 2024
- #43
Consider the example in 24-class-metaprog/factories.py (corresponds to example 24-2, page 912 in my copy)
Dog = record_factory( Dog , name weight owner )
rex = Dog( Rex , 30, Bob )
We do not get static ...
jsrozner
- 2
- Opened on Apr 5, 2024
- #42
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,
...
ngokchaoho
- Opened on Dec 13, 2023
- #40
Hi Luciano,
I am playing a bit with the spinner_async.py example, and I am wondering why the execution finishes normally when I
comment the spinner.cancel() line in the supervisor function. I think the ...
CarMoreno
- 1
- Opened on Aug 7, 2023
- #37

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.