Current Path : /usr/local/lib/python2.5/ctypes/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/ctypes/test/test_stringptr.pyo |
³ò h”Rc @ si d d k Z d d k Td d k Z e e i ƒ Z d e i f d „ ƒ YZ e d j o e i ƒ n d S( iÿÿÿÿN( t *t StringPtrTestCasec B s# e Z d „ Z d „ Z d „ Z RS( c C sÞ d t f d „ ƒ Y} | ƒ } | i t t | i d ƒ t d ƒ } d d k l } | i | | ƒ d ƒ | | _ | i | | ƒ d ƒ x5 t t | ƒ ƒ D]! } | i | | | i | ƒ qœ W| i t t | d d ƒ d S( Nt Xc B s e Z d e e ƒ f g Z RS( t str( t __name__t __module__t POINTERt c_chart _fields_( ( ( s6 /usr/local/lib/python2.5/ctypes/test/test_stringptr.pyR s t contentss Hello, Worldiÿÿÿÿ( t getrefcounti i R ( t Structuret assertRaisest ValueErrort getattrR t c_buffert sysR t failUnlessEqualt ranget lent TypeErrort setattr( t selfR t xt bt grct i( ( s6 /usr/local/lib/python2.5/ctypes/test/test_stringptr.pyt test__POINTER_c_char s c C sw d t f d „ ƒ Y} | ƒ } | i | i d ƒ d | _ | i | i d ƒ t d ƒ } | i t t | d | ƒ d S( NR c B s e Z d e f g Z RS( R ( R R t c_char_pR ( ( ( s6 /usr/local/lib/python2.5/ctypes/test/test_stringptr.pyR s s Hello, WorldR ( R R R t NoneR t failUnlessRaisesR R ( R R R R ( ( s6 /usr/local/lib/python2.5/ctypes/test/test_stringptr.pyt test__c_char_p s c C s? t i } t | _ t t f | _ | i | d d ƒ d ƒ | i | t d ƒ d ƒ d ƒ t t ƒ t f | _ t d ƒ } | i | | d ƒ d ƒ | i | d d ƒ d ƒ t t ƒ | _ t d ƒ } | | d ƒ } | d | d | d | d | d f } | i | d ƒ ~ | d | d | d | d | d f } d S( Nt abcdeft ct cdefi i i i i t dt et ft ( R! R# R$ R% s ( t libt my_strchrR t restypeR t argtypesR R R ( R t strchrt buft rR t x1( ( s6 /usr/local/lib/python2.5/ctypes/test/test_stringptr.pyt test_functions, s )( R R R R R/ ( ( ( s6 /usr/local/lib/python2.5/ctypes/test/test_stringptr.pyR s t __main__( t unittestt ctypest _ctypes_testt CDLLt __file__R' t TestCaseR R t main( ( ( s6 /usr/local/lib/python2.5/ctypes/test/test_stringptr.pys <module> s B