dict.get(key, default) evaluates default even if key exists
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Dec 17 04:44:27 EST 2020
On 17/12/20 8:31 am, Grant Edwards wrote:
> On 2020-12-16, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
>> https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_name
>
> I vaguely recall some other old
> language I ran across in a survey course when in college that used it.
> IIRC it was Algol.
Algol 60.
Also, Lisp macros effectively let you do something similar.
--
Greg
More information about the Python-list
mailing list