/[escript]/trunk/escript/py_src/util.py
ViewVC logotype

Diff of /trunk/escript/py_src/util.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2744 by jfenwick, Thu Nov 12 06:03:37 2009 UTC revision 2745 by jfenwick, Tue Nov 17 04:23:02 2009 UTC
# Line 6197  def showEscriptParams(): Line 6197  def showEscriptParams():
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()

Legend:
Removed from v.2744  
changed lines
  Added in v.2745

  ViewVC Help
Powered by ViewVC 1.1.26