o
    ¦ƒðjF  ã                   @   s   d dl mZ 	 ddd„ZdS )é    )ÚPythonCodePrinterÚpython3c                 C   s^   t d|iƒ}| | ¡}|jd rd dd„ |jD ƒ¡}nd dd„ |j ¡ D ƒ¡}|d | S )	zÇRenders 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                 s   s   � | ]}d | V  qdS )z	import %sN© )Ú.0Úkr   r   ú—/tmp/claude-1000/-var-www-html-academy/3f42efd1-c2b7-4d08-9b05-30d86bb35479/scratchpad/piper/venv/lib/python3.10/site-packages/sympy/codegen/pyutils.pyÚ	<genexpr>   s   € z#render_as_module.<locals>.<genexpr>c                 S   s"   g | ]\}}d |d  |¡f ‘qS )zfrom %s import %sz, )Újoin)r   r	   Úvr   r   r
   Ú
<listcomp>   s    ÿz$render_as_module.<locals>.<listcomp>z

)r   ÚdoprintÚ	_settingsr   Úmodule_importsÚitems)Úcontentr   ÚprinterÚpystrÚmodule_imports_strr   r   r
   Úrender_as_module   s   


ÿr   N)r   )Úsympy.printing.pycoder   r   r   r   r   r
   Ú<module>   s    