+
    i                     V    ^ RI t^ RIt^RIHt ^RIHt Rt ! R R]]4      tR t	R t
R# )	    N)ReprPrinter)
StrPrinterc                   L   a a ] tR t^
t oRtRV 3R lltR tR tR tRt	Vt
V ;t# )PythonPrinterzFA printer which converts an expression into its Python interpretation.c                   < \         SV `  V4       . V n        . V n        \         F,  pR V,          p\        \        V4      p\        \        W44       K.  	  R# )z	_print_%sN)	super__init__symbols	functionsSTRPRINTgetattrr   setattrr   )selfsettingsnamef_namef	__class__s   &&   u/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/sympy/printing/python.pyr	   PythonPrinter.__init__   sJ    " D 4'F
F+AM6-     c                    VP                   P                  p\        \        V4      '       g,   W P                  9  d   V P                  P                  V4       \        P                  ! W4      # N)func__name__hasattrsympyr   appendr   _print_Function)r   exprr   s   && r   r   PythonPrinter._print_Function   sJ    yy!!ud##NN(BNN!!$'))$55r   c                    V P                  V4      pW P                  9  d   V P                  P                  V4       \        P                  ! W4      # r   )_strr
   r   r   _print_Symbol)r   r    symbols   && r   r$   PythonPrinter._print_Symbol    s<    4%LL'''33r   c                    \        R 4      h)z*Modules in the expression are unacceptable)
ValueError)r   r    s   &&r   _print_modulePythonPrinter._print_module&   s    EFFr   )r   r
   r   )r   
__module____qualname____firstlineno____doc__r	   r   r$   r)   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r   
   s#     P
.64G Gr   r   c                   \        V4      pVP                  V 4      pRp/ pVP                   F  pRV9   d<   VP                  RR4      P                  RR4      pWu\        P
                  ! V4      &   MTp\        P                  ! V4      '       d]    VR,          pWrP                  9  g   K  WrP                  9  g   K.  \        P
                  ! V4      V\        P
                  ! V4      &    WGR,           V,           R,           ,          pK  	  VP                   F  pTp	\        P                  ! V	4      '       d]    V	R,          p	WP                  9  g   K  WP                  9  g   K.  \        P                  ! V	4      V\        P                  ! V4      &    WIR,           V,           R,           ,          pK  	  V'       d   V P                  V4      pVRVP                  V4      ,           ,          pV# )	zrReturn Python interpretation of passed expression
(can be passed to the exec() function without any modifications) {}_z = Symbol('z')
z = Function('ze = )r   doprintr
   replacer   Symbolkw	iskeywordr   Functionsubsr#   )
r    r   printerexprpresult	renamings
symbolnamenewsymbolnamefunctionnamenewfunctionnames
   &,        r   pythonrG   *   s    H%GOOD!EFIoo
*&..sB7??RHM2?ell:./&M <<&&$!8%->->>',||M'B ell"$ %.0:=GG# &&  ))&<<((3&#??:'/@/@@).)H enn$& '$44|CgMM * 		)$
fw||E***FMr   c                0    \        \        V 3/ VB 4       R# )z!Print output of python() functionN)printrG   )r    r   s   &,r   print_pythonrJ   Z   s    	&
"
"#r   )AddInfinityIntegerMulNegativeInfinityPow)keywordr;   r   reprr   strr   r   r   rG   rJ    r   r   <module>rU      s5        LGK G@-`$r   