<s> """<STR_LIT>""" <EOL> from __future__ import ( <EOL> absolute_import , division , print_function , unicode_literals <EOL> ) <EOL> class ElementProxy ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( '<STR_LIT>' , ) <EOL> def __init__ ( self , element ) : <EOL> self . _element = element <EOL> def __eq__ ( self , other ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( other , ElementProxy ) : <EOL> return False <EOL> return self . _element is other . _element <EOL> def __ne__ ( self , other ) : <EOL> if not isinstance ( other , ElementProxy ) : <EOL> return True <EOL> return self . _element is not other . _element <EOL> @ property <EOL> def element ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _element <EOL> class ParentedElementProxy ( ElementProxy ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( '<STR_LIT>' , ) <EOL> def __init__ ( self , element , parent ) : <EOL> super ( ParentedElementProxy , self ) . __init__ ( element ) <EOL> self . _parent = parent <EOL> @ property <EOL> def parent ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _parent <EOL> @ property <EOL> def part ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _parent . part </s>
