Re: Lazy evaluated
On 03/29/2013 05:40 AM, Steven D'Aprano wrote: On Thu, 28 Mar 2013 22:37:47 +0300, Habibutsu wrote: For example, we have following code: 01|def foo(): 02|return 1 03| 04|value = foo() 05| 06|if value == 1: 07|print value,"- equal 1" 08| 09|if i
Lazy evaluated
For example, we have following code: 01|def foo(): 02|return 1 03| 04|value = foo() 05| 06|if value == 1: 07|print value,"- equal 1" 08| 09|if isinstance(value, int): 10|print value,"- is int" 11|else: 12|print value,"- is not int" Task is to