#NEWLINE# @ classmethod #NEWLINE# def fromSource( cls , s ) : #NEWLINE# #INDENT# '\n            >>> tl = A.fromSource(\'[2, 3, 4]\')\n            >>> tl\n            <AList:[2, 3, 4]>\n            >>> td = A.fromSource(\'{"a": 2, "b": 3}\')\n            >>> td\n            <ADict:{\'a\': 2, \'b\': 3}>\n        ' #NEWLINE# compiled = eval ( s ) #NEWLINE# if isinstance ( compiled , dict ) : #NEWLINE# #INDENT# return cls . _getDictClass ( ) ( compiled ) #NEWLINE# #UNINDENT# if isinstance ( compiled , ( list , tuple ) ) : #NEWLINE# #INDENT# return cls . _getListClass ( ) ( compiled ) #NEWLINE# #UNINDENT# return compiled