
    wgF                         d dl mZ 	 ddZy)    )PythonCodePrinterc                 `   t        d|i      }|j                  |       }|j                  d   r#dj                  d |j                  D              }nQdj                  |j                  j                         D cg c]  \  }}d|ddj                  |       c}}      }|dz   |z   S c c}}w )	zRenders Python code as a module (with the required imports).

    Parameters
    ==========

    standard :
        See the parameter ``standard`` in
        :meth:`sympy.printing.pycode.pycode`
    standardfully_qualified_modules
c              3   &   K   | ]	  }d |z    yw)z	import %sN ).0ks     Z/home/mcse/projects/flask/flask-venv/lib/python3.12/site-packages/sympy/codegen/pyutils.py	<genexpr>z#render_as_module.<locals>.<genexpr>   s     &W1{Q&Ws   zfrom z import z, z

)r   doprint	_settingsjoinmodule_importsitems)contentr   printerpystrmodule_imports_strr   vs          r   render_as_moduler      s      H 56GOOG$E23!YY&W@V@V&WW!YY070F0F0L0L0N(P(,1 @A$))A,(O (P Q&..(Ps   9!B*
N)python3)sympy.printing.pycoder   r   r	       r   <module>r      s    3 A/r   