void () { final PyEvaluator evaluator = new PyEvaluator(); evaluator.setEvaluateCollectionItems(false); final List list = PyUtil.as(evaluator.evaluate(parseText("a = 10\nb = 20\nexpr = [a, b]")), List.class); assertNotNull(list); assertEquals(2, list.size()); final PyReferenceExpression first = PyUtil.as(list.get(0), PyReferenceExpression.class); assertNotNull(first); assertEquals(10, evaluator.evaluate(first)); final PyReferenceExpression second = PyUtil.as(list.get(1), PyReferenceExpression.class); assertNotNull(second); assertEquals(20, evaluator.evaluate(second)); }