Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
ctypes
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/ctypes/test/test_cast.pyc
mò šóIFc @ sQ d k Td k Z d k Z d e i f d „ ƒ YZ e d j o e i ƒ n d S( ( t *Nt Testc B s\ t Z d „ Z d „ Z d „ Z d „ Z d „ Z y e Wn e j o n Xd „ Z RS( Nc C sE t d d d d ƒ } t | t t ƒ ƒ } | i g } t d ƒ D] } | | | qB ~ d d d g ƒ d t t ƒ t t ƒ j o» t | t t ƒ ƒ } t i d j oK | i g } t d ƒ D] } | | | q ~ d d d d d d g ƒ qA| i g } t d ƒ D] } | | | q ~ d d d d d d g ƒ n d S( Ni i* i i t littlei i ( t c_intt arrayt castt POINTERt ptrt selft failUnlessEqualt _[1]t ranget it sizeoft c_shortt syst byteorder( R R R R R ( ( t9 /usr/lib/python2.4/site-packages/ctypes/test/test_cast.pyt test_array2pointer s >..c C sÒ t d d d d ƒ } t | ƒ } t t | ƒ t t ƒ ƒ } | i g } t d ƒ D] } | | | qT ~ d d d g ƒ t | t t ƒ ƒ } | i g } t d ƒ D] } | | | q§ ~ d d d g ƒ d S( Ni i* i i ( R R t addressoft addressR t c_void_pR R R R R R R ( R R R R R R ( ( R t test_address2pointer s >c C sH t d ƒ } | i | i d ƒ d | d <| i | i h d d <ƒ t | t t ƒ ƒ } | i | i | i j ƒ | i | i h d d <t | ƒ | <ƒ d | d <| i | i h d d <t | ƒ | <ƒ | i | i | i j ƒ d | d <| i | i h d d <d d <t | ƒ | <ƒ | i | i | i j ƒ d S( Ni s foo bari t 0s spam spami t 1( t c_char_pR R R t _objectst NoneR R t pt failUnlesst id( R R R ( ( R t test_p2a_objects! s + + 4c C sÄ t t d d d d d ƒ t t ƒ ƒ } | i | d d d d d g ƒ t ƒ | i | d d d d d g ƒ d | d <| i | d d d d d g ƒ t ƒ | i | d d d d d g ƒ d S( Ni i i i i` ( R R R R R R ( R R ( ( R t test_other2 s ( c C s5 t d ƒ } | i t t | t ƒ t ƒ i d ƒ d S( Nt hiho( R t sR R R R t value( R R"