def get_lineno(node):
 lineno = None
 while ((lineno is None) and node):
  node = node.parent
  lineno = node.line
 return lineno

def get_lineno ( node ) : lineno = None while ( ( lineno is None ) and node ) : node = node . parent lineno = node . line return lineno
obtain line number information for a node .