SE/relacion.py
def insert(self, values):
        '''
        Inserts a tuple in the relation.
        This function will not insert duplicate tuples.
        All the values will be converted in string.
        Will return the number of inserted rows.

        Will fail if the tuple has the wrong amount of items.
        '''

        if len(self.header) != len(values):
            raise Exception(
                'Tuple has the wrong size. Expected %d, got %d' % (
                    len(self.header),
                    len(values)
                )
            )

        self._make_writable()

        prevlen = len(self.content)
        self.content.add(tuple(map(rstring, values)))
        return len(self.content) - prevlen

        Inserts a tuple in the relation.
        This function will not insert duplicate tuples.
        All the values will be converted in string.
        Will return the number of inserted rows.

        Will fail if the tuple has the wrong amount of items.
        
Inserts a tuple in the relation.
This function will not insert duplicate tuples.
All the values will be converted in string.
Will return the number of inserted rows.

Will fail if the tuple has the wrong amount of items.
Inserts a tuple in the relation . This function will not insert duplicate tuples . All the values will be converted in string . Will return the number of inserted rows . Will fail if the tuple has the wrong amount of items .
def insert(self, values):
        if len(self.header) != len(values):
            raise Exception(
                'Tuple has the wrong size. Expected %d, got %d' % (
                    len(self.header),
                    len(values)
                )
            )
        self._make_writable()
        prevlen = len(self.content)
        self.content.add(tuple(map(rstring, values)))
        return len(self.content) - prevlen
def insert ( self , values ) : if len ( self . header ) != len ( values ) : raise Exception ( 'Tuple has the wrong size. Expected %d, got %d' % ( len ( self . header ) , len ( values ) ) ) self . _make_writable ( ) prevlen = len ( self . content ) self . content . add ( tuple ( map ( rstring , values ) ) ) return len ( self . content ) - prevlen
Inserts a tuple in the relation.
Inserts a tuple in the relation .
'''
        Inserts a tuple in the relation.
        This function will not insert duplicate tuples.
        All the values will be converted in string.
        Will return the number of inserted rows.

        Will fail if the tuple has the wrong amount of items.
        '''
self
values