mò *á¸Ec@s.dZd„Zd„Zd„Zd„ZdS(s9Restricted Python transformation examples This module contains pairs of functions. Each pair has a before and an after function. The after function shows the source code equivalent of the before function after it has been modified by the restricted compiler. These examples are actually used in the testRestrictions.py checkBeforeAndAfter() unit tests, which verifies that the restricted compiler actually produces the same output as would be output by the normal compiler for the after function. $Id: before_and_after24.py 40218 2005-11-18 14:39:19Z andreasjung $ cCsd„tDƒ}dS(Nccs-x&|]}|djo |dVqqWdS(iiN(t[outmost-iterable]ty(RR((tH/data/zmath/zope/lib/python/RestrictedPython/tests/before_and_after24.pyts(twhatevertx(R((Rt"simple_generator_expression_beforescCsd„ttƒDƒ}dS(Nccs-x&|]}|djo |dVqqWdS(iiN(RR(RR((RR!s(t _getiter_RR(R((Rt!simple_generator_expression_after scCsd„tDƒ}dS(NccsWxP|]I}|djo6x3tD]'}||jo|d|dVq q WqqWdS(iiN(RRt whatever2R(RRR((RR$s(t whatever1R(R((Rt"nested_generator_expression_before#scCsd„ttƒDƒ}dS(Nccs]xV|]O}|djo<x9ttƒD]'}||jo|d|dVq&q&WqqWdS(iiN(RRRR R(RRR((RR(s (RR R(R((Rt!nested_generator_expression_after'sN(t__doc__RRR R (R R RR((Rt?s