git » pymisc » master » tree

[master] / samples / lazy / sample1.py

import lazy
import time


def show(v):
	print 'show() init + print'
	s = str(v)
	print 'show() v: ' + s
	print 'show() done'

@lazy.lazy
def set():
	print 'set() returns 3'
	return 3

v = set()
show(v)