#NEWLINE# @ _parent . setter #NEWLINE# def _parent( self , value ) : #NEWLINE# #INDENT# ' Set weakref to parent. ' #NEWLINE# self . _parent_ref = ( None if ( value is None ) else weakref . ref ( value ) )