On 2/19/17, Michel Desmoulin <desmoulinmic...@gmail.com> wrote:

> Evnetually we also may need to allow this:
>
> a = lazy stuff
> if a is not lazy:
>     print(a)
>
> But then lazy can't be used a var name to help with the transition.

What about this?

if not inspect.islazy(a):
    print(a)

Next idea is probably obvious:

class Busy_Beaver:
    ''' we want to be sure that beaver is disturbed only if it is
really necessary '''
    def __call_me_later__(self, n):
        return too_expensive(n)
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to