[Python-ideas] Another use case for the 'lazy' (aka 'delayed') keyword
markusmeskanen at gmail.com
Tue Feb 28 07:47:09 EST 2017
> You don't need list comprehension, you can use a for loop.
> You don't need upacking you can use indexing.
> And you don't need lazy, it's just convenient.
With this sole argument you can add almost anything to the language as long
as it has at least one use case where it's better than existing tools. I'm
not against the lazy proposal in general, but attempting to justify a new
keyword to replace this is just silly to me:
def lazy_get(self, key, callable=None):
if key in self:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas