³ò
×‘RMc           @   se   d  d k  l Z d  d k l Z d  d k l Z d  d k Z e i d j Z d e f d „  ƒ  YZ	 d S(   iÿÿÿÿ(   t   MixedModule(   t   OperationError(   t   we_are_translatedNt   win32t   Modulec           B   s¦  e  Z d  Z d „  Z h  d d <d d <d d <d d	 <d d
 <d d <d d <d d <d d <d d <d d <d d <d d <d d <d d <d d <d d <d  d! <d" d# <d$ d% <d& d' <d( d) <d* d+ <d, d- <d. d/ <d0 d1 <d2 d3 <d4 d5 <d6 d7 <d8 d9 <d: d; <d< d= <d> d? <d@ dA <dB dC <dD dE <dF dG <dH dI <dJ dK <dL dM <dN dO <dP dQ <dR dS <dT dU <dV dW <dV dX <dY dZ <d  d[ <d\ d] <d^ d_ <d` da <db dc <dd de <Z e i df j o dg e dh <di e dj <n h  dk dl <dk dm <dn do <dp dq <dr ds <dt du <dv dw <Z dx „  Z dy „  Z	 dz „  Z
 d{ „  Z d| „  Z d} „  Z d~ „  Z RS(   s   Sys Builtin Module. c         C   s_   | i  i o |  i i d =n t t |  ƒ i | | ƒ d |  _ d |  _	 d |  _
 d |  _ d S(   t   NOT_RPYTHONt   pypy_getudirid   t   asciiN(   t   configt   translatingt	   __class__t   interpleveldefst   superR   t   __init__t   recursionlimitt   Nonet   w_default_encodert   defaultencodingt   filesystemencoding(   t   selft   spacet   w_name(    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyR   
   s    			s   (space.wrap("sys"))t   __name__s   (space.wrap("PyPy sys module"))t   __doc__s   space.wrap(sys.platform)t   platforms   space.wrap(sys.maxint)t   maxintt   maxsizes   space.wrap(sys.byteorder)t	   byteorders   space.wrap(vm.MAXUNICODE)t
   maxunicodes   state.getio(space).w_stdint   stdint	   __stdin__s   state.getio(space).w_stdoutt   stdoutt
   __stdout__s   state.getio(space).w_stderrt   stderrt
   __stderr__s   space.wrap(repr(space))t   pypy_objspaceclasss   state.get(space).w_patht   paths   state.get(space).w_modulest   moduless   state.get(space).w_argvt   argvs   space.w_Falset   py3kwarnings   state.get(space).w_warnoptionst   warnoptionss   state.w_Nonet   builtin_module_namess   state.pypy_getudirR   s   state.pypy_initial_patht   pypy_initial_paths   vm._getframet	   _getframes   vm.setrecursionlimitt   setrecursionlimits   vm.getrecursionlimitt   getrecursionlimits   vm.setcheckintervalt   setcheckintervals   vm.getcheckintervalt   getcheckintervals   vm.exc_infot   exc_infos   vm.exc_cleart	   exc_clears   vm.settracet   settraces   vm.setprofilet
   setprofiles   vm.getprofilet
   getprofiles   vm.call_tracingt   call_tracings   vm.getsizeoft	   getsizeofs   space.wrap("py.py")t
   executables   version.get_api_version(space)t   api_versions   version.get_version_info(space)t   version_infos   version.get_version(space)t   versions$   version.get_pypy_version_info(space)t   pypy_version_infos"   version.get_subversion_info(space)t
   subversions"   version.wrap_mercurial_info(space)t
   _mercurials   version.get_hexversion(space)t
   hexversions   hook.displayhookt   displayhooks   hook.__displayhook__t   __displayhook__s   space.wrap([])t	   meta_patht
   path_hookss   space.wrap({})t   path_importer_cachet   dont_write_bytecodes"   interp_encoding.getdefaultencodingt   getdefaultencodings"   interp_encoding.setdefaultencodingt   setdefaultencodings%   interp_encoding.getfilesystemencodingt   getfilesystemencodings   system.get_float_info(space)t
   float_infos   system.get_long_info(space)t	   long_infoR   s   version.get_winver(space)t   winvers   vm.getwindowsversiont   getwindowsversions   app.excepthookt
   excepthookt   __excepthook__s   app.exitt   exits   app.exitfunct   exitfuncs   app.callstatst	   callstatss   app.copyright_strt	   copyrights   app.null_sysflagst   flagsc         C   s;   |  i  i | ƒ } |  i d ƒ } |  i  i | | | ƒ d  S(   NR%   (   R   t   wrapt   gett   setitem(   R   t   w_modulet   nameR   t	   w_modules(    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyt   setbuiltinmoduleb   s    c         C   s}   | i  i o& t ƒ  o |  i d  j p t ‚ nG t o? d d k l } | i	 | ƒ } | i
 |  | i d ƒ | ƒ n d  S(   Niÿÿÿÿ(   t   vmt	   dllhandle(   R   R	   R   R   R   t   AssertionErrort   _WINt   pypy.module.sysRZ   t   get_dllhandlet   setattrRS   (   R   R   RZ   t   w_handle(    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyt   startupg   s    c         C   sr   |  i  } |  i d ƒ } y | i | | i | ƒ ƒ SWn6 t j
 o* } | i | | i ƒ p ‚  n d  Sn Xd  S(   NR%   (   R   RT   t   getitemRS   R   t   matcht
   w_KeyErrorR   (   R   RW   R   RX   t   e(    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyt	   getmoduler   s    	c         C   sP   |  i  } |  i  i | | i d ƒ ƒ } |  i d ƒ } |  i  i | | | ƒ d  S(   NR   R%   (   R   t   getattrRS   RT   RU   (   R   RV   R   R   RX   (    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyt	   setmodule|   s    	c         C   s  t  i |  | | ƒ } | d j	 o | Sn | d j o5 | i ƒ  i ƒ  } | d j o | i Sqÿ | i Sn” | d j o; | i ƒ  i ƒ  } | d j o | i Sqÿ | i | ƒ SnL | d j o> | i ƒ  i ƒ  } | d j o | i Sqÿ | i | i	 ƒ Sn d S(   s0    specialize access to dynamic exc_* attributes. t   exc_typet	   exc_valuet   exc_tracebackN(
   R    t   getdictvalueR   t   getexecutioncontextt   sys_exc_infot   w_Nonet   w_typet   get_w_valueRS   t   application_traceback(   R   R   t   attrt   valuet   operror(    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyRm   ‚   s&    c         C   s<   |  i  d  j	 o |  i  Sn d d k l } | |  i ƒ Sd  S(   Niÿÿÿÿ(   t   get_w_default_encoder(   R   R   t   pypy.module.sys.interp_encodingRw   R   (   R   Rw   (    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyRw   ›   s    c         C   s4   |  i  } | i | i |  i d ƒ | i | ƒ ƒ ƒ S(   NRR   (   R   t   int_wRh   RT   RS   (   R   RW   R   (    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyt   get_flag¥   s    	(   R   t
   __module__R   R   R   t   sysR   t   appleveldefsRY   Rb   Rg   Ri   Rm   Rw   Rz   (    (    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pyR      s”   	
																																																				
									
			
(
   t   pypy.interpreter.mixedmoduleR    t   pypy.interpreter.errorR   t   pypy.rlib.objectmodelR   R|   R   R]   R   (    (    (    s,   /64/home/arigo/u/pypy/module/sys/__init__.pys   <module>   s
   
