#NEWLINE# def open_node( node , mode = 'r' ) : #NEWLINE# #INDENT# "Opens an existing file node.\n\n    Returns a file node object from the existing specified PyTables\n    node. If mode is not specified or it is 'r', the file can only be\n    read, and the pointer is positioned at the beginning of the file. If\n    mode is 'a+', the file can be read and appended, and the pointer is\n    positioned at the end of the file.\n\n    " #NEWLINE# if ( mode == 'r' ) : #NEWLINE# #INDENT# return ROFileNode ( node ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( mode == 'a+' ) : #NEWLINE# #INDENT# return RAFileNode ( node , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise IOError ( ( 'invalid mode: %s' % ( mode , ) ) )