Wrapping/WrapITK/Python/itkExtras/__init__.py
def echo(object, f=sys.stderr) :
   """Print an object is f
   
   If the object has a method Print(), this method is used.
   repr(object) is used otherwise
   """
   import itk
   ss = itk.StringStream()
   try :
      try:
         object.Print(ss.GetStream())
      except:
         object.Print(ss.GetStream(),Indent.New());
   except:
      print >> f, repr(object)
   else:
      print >> f, ss.GetString()
Print an object is f
   
   If the object has a method Print(), this method is used.
   repr(object) is used otherwise
   
Print an object is f
If the object has a method Print(), this method is used.
Print an object is f If the object has a method Print () this method is used .
def echo(object, f=sys.stderr) :
   import itk
   ss = itk.StringStream()
   try :
      try:
         object.Print(ss.GetStream())
      except:
         object.Print(ss.GetStream(),Indent.New());
   except:
      print >> f, repr(object)
   else:
      print >> f, ss.GetString()
def echo ( object , f = sys . stderr ) : import itk ss = itk . StringStream ( ) try : try : object . Print ( ss . GetStream ( ) ) except : object . Print ( ss . GetStream ( ) , Indent . New ( ) ) ; except : print >> f , repr ( object ) else : print >> f , ss . GetString ( )
Print an object is f
If the object has a method Print(), this method is used.
Print an object is f If the object has a method Print () this method is used .
"""Print an object is f
   
   If the object has a method Print(), this method is used.
   repr(object) is used otherwise
   """
object
f