#NEWLINE# @ classmethod #NEWLINE# def view_list( cls , lst ) : #NEWLINE# #INDENT# '\n        Create a dict that is a view on the given list\n        ' #NEWLINE# if ( not isinstance ( lst , list ) ) : #NEWLINE# #INDENT# raise TypeError ( ( '%s.view_list(obj) takes only actual list objects, not %r' % ( obj . __name__ , lst ) ) ) #NEWLINE# #UNINDENT# obj = cls ( ) #NEWLINE# obj . _items = lst #NEWLINE# return obj