6197 |
for name,desc in p: |
for name,desc in p: |
6198 |
print name+':\t'+desc |
print name+':\t'+desc |
6199 |
|
|
6200 |
|
#Lazy related things |
6201 |
|
#These are just wrappers |
6202 |
|
def resolve(arg): |
6203 |
|
""" |
6204 |
|
Returns the value of arg resolved. |
6205 |
|
""" |
6206 |
|
if not isinstance(arg,Data): |
6207 |
|
raise TypeError, "Can only resolve Data." |
6208 |
|
if arg.isLazy(): |
6209 |
|
arg.resolve() |
6210 |
|
return arg |
6211 |
|
|
6212 |
|
def delay(arg): |
6213 |
|
""" |
6214 |
|
Returns a lazy version of arg |
6215 |
|
""" |
6216 |
|
if not isinstance(arg,Data): |
6217 |
|
raise TypeError, "Can only delay Data." |
6218 |
|
return arg.delay() |