
    xKg	                     
   d Z ddlmZmZmZ ddlmZmZ  ed      Zej                  Z	 e	dej                        d        Z e	dej                        d        Z e	e ej                  ej                              d        Zy	)
z7
This file implements print functionality for the CPU.
    )typestypingcgutils)Registryimpl_ret_untracked	printimpl
print_itemc                 ,   |j                   \  }|j                  }| j                  |      }|j                  |j	                  |            }|j                  |       |j                  |       | j                         }t        | ||j                  |      S )z(
    Print a single constant value.
    )
argsliteral_valueget_python_apiunserializeserialize_objectprint_objectdecrefget_dummy_valuer   return_type)	contextbuildersigr   tyvalpyapistrobjress	            [/home/alanp/www/video.onchill/myenv/lib/python3.12/site-packages/numba/cpython/printimpl.pyprint_item_implr      s    
 ((CB


C""7+Eu55c:;F	v	LL

!
!
#CgwEE    c                    |j                   \  }|\  }| j                  |      }| j                  |      }| j                  r| j                  j                  |||       |j                  |||      }|j                  t        j                  ||      d      5 \  }	}
|	5  |j                  |       |j                  |       ddd       |
5  | j                  |j                  d      }|j                  |      }|j                  |       |j                  |       ddd       ddd       | j!                         }t#        | ||j$                  |      S # 1 sw Y   xY w# 1 sw Y   ExY w# 1 sw Y   IxY w)z~
    Print a single native value by boxing it in a Python object and
    invoking the Python interpreter's print routine.
    T)likelyNzthe print() function)r   r   get_env_manager
enable_nrtnrtincreffrom_native_valueif_elser   is_not_nullr   r   insert_const_stringmodulestring_from_stringerr_write_unraisabler   r   r   )r   r   r   r   r   r   r   env_managerobjif_okif_errorcstrr   r   s                 r   r   r   !   sC    ((CBDC""7+E))'2K7B,

!
!"c;
7C	,,Wc:4	HL]UT\s#LL  ..w~~/EGD--d3F&&v.LL  	 
I 
!
!
#CgwEE U X	 
I	Hs=   E+#E
E+AEE+E	E+E(	$E++E4c                    | j                  |      }|j                         }t        t        |j                  |            D ]k  \  }\  }}t        j                  t        j                  |      }	| j                  d|	      }
 |
||g       |t        |      dz
  k  s[|j                  d       m |j                  d       |j                  |       | j                         }t        | ||j                  |      S )z 
    A entire print() call.
    r	       
)r   
gil_ensure	enumeratezipr   r   	signaturer   noneget_functionlenprint_stringgil_releaser   r   r   )r   r   r   r   r   giliargtypeargvalr8   impr   s               r   print_varargs_implrC   @   s    
 ""7+E



C )#chh*= >GV$$UZZ9	""<;GfXs4y1}s# !? 
t	c

!
!
#CgwEEr   N)__doc__
numba.corer   r   r   numba.core.imputilsr   r   registrylowerLiteralr   AnyprintVarArgrC    r   r   <module>rN      s    . - <K  |U]]#F $F" |UYYF  F< ulell599%&F 'Fr   