Configuring an object via a dictionary

Barry barry at barrys-emacs.org
Sat Mar 16 04:15:19 EDT 2024



> On 15 Mar 2024, at 19:51, Thomas Passin via Python-list <python-list at python.org> wrote:
> 
> I've always like writing using the "or" form and have never gotten bit

I, on the other hand, had to fix a production problem that using “or” introducted.
I avoid this idiom because it fails on falsy values.

Barry


More information about the Python-list mailing list