Re:Frankenstein's `__init__`
by jakewins on Saturday April 19, 2025 @01:58PM
(#43738118)
This is the exact opposite? They explicitly encourage doing resource-opening in the __enter__ method call, and then returning the opened resource encapsulated inside an object.
Nothing about the contract encourages doing anything fallible in __init__
Nothing about the contract encourages doing anything fallible in __init__