#NEWLINE# def _fork( self , tables , keys , key_name = None , key_type = None ) : #NEWLINE# #INDENT# '\n        Create a new :class:`.TableSet` using the metadata from this one.\n\n        This method is used internally by functions like\n        :meth:`.TableSet.having`.\n        ' #NEWLINE# if ( key_name is None ) : #NEWLINE# #INDENT# key_name = self . _key_name #NEWLINE# #UNINDENT# if ( key_type is None ) : #NEWLINE# #INDENT# key_type = self . _key_type #NEWLINE# #UNINDENT# return TableSet ( self , keys , key_name , key_type , _is_fork = True )