#NEWLINE# def copy( self , other ) : #NEWLINE# #INDENT# 'fill from other entry.\n\n        This method works if other is :class:`GTF.Entry` or\n        :class:`pysam.GTFProxy`.\n        ' #NEWLINE# self . contig = other . contig #NEWLINE# self . source = other . source #NEWLINE# self . feature = other . feature #NEWLINE# self . start = other . start #NEWLINE# self . end = other . end #NEWLINE# self . score = self . score #NEWLINE# self . strand = other . strand #NEWLINE# self . frame = other . frame #NEWLINE# try : #NEWLINE# #INDENT# self . gene_id = other . gene_id #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . transcript_id = other . transcript_id #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . attributes = copy . copy ( other . asDict ( ) ) #NEWLINE# try : #NEWLINE# #INDENT# del self . attributes [ 'gene_id' ] #NEWLINE# del self . attributes [ 'transcript_id' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return self