mò *á¸Ec@szdZddd!ZdklZdklZlZdkZeiddƒZe Z d „Z d Z d fd „ƒYZ dS( sURestricted Python Expressions $Id: Eval.py 40218 2005-11-18 14:39:19Z andreasjung $ s$Revision: 1.6 $i iþÿÿÿ(scompile_restricted_eval(s translatesstripNs s cCs||S(N(tobtindex(RR((t4/data/zmath/zope/lib/python/RestrictedPython/Eval.pytdefault_guarded_getitemsitRestrictionCapableEvalcBs\tZdZhdes prepRestrictedCode: %d ms for %sièi(RtrcodetNonetPROFILEttimetclocktstarttcompile_restricted_evalRtcoterrtwarntusedtendt SyntaxErrorttupletkeys(RRRRRRRR((RtprepRestrictedCode8s   c Cs8|idjo$t|iddƒ}|idjoòt|iƒ} h}d}|i }t |ƒ}d}d}xš||joŒt||ƒ}||joF| t||dƒdt||dƒ} d|| <|d }qt||jo|d }qt|d}qtWt|iƒƒ|_n||_ndS( NstevaliieiZiiii(RtucodeRtcompileRRRtlisttco_namestnamestitco_codetcodetlentlt LOAD_NAMEt HAVE_ARGUMENTtordtctnameRR( RRRR*R$R,R(R)R&R#R-((RR Hs,    .  cCsž|iƒ|i}hdt<dt<}|i|iƒ|i }xJ|i D]?}y#||ƒp||||