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_slicing.pyc |
³ò h”Rc @ sZ d d k Z d d k Td d k Z d e i f d „ ƒ YZ e d j o e i ƒ n d S( iÿÿÿÿN( t *t SlicesTestCasec B s\ e Z d „ Z d „ Z d „ Z d „ Z d „ Z y e Wn e j o n Xd „ Z RS( c C sä t d t d d ƒ Œ } t d d ƒ } | i | d d !| d d !ƒ | i t | ƒ t | ƒ ƒ | i | d d !| d d !ƒ | i | d | d ƒ | i | | ƒ t d d ƒ | d d +| i | d d !t d d ƒ ƒ d S( Nid iL i° i i i i iÿÿÿÿi ( t c_intt xranget ranget failUnlessEqualt len( t selft at b( ( s4 /usr/local/lib/python2.5/ctypes/test/test_slicing.pyt test_getslice_cint s c C s t d t d d ƒ Œ } t d d ƒ } t d d ƒ | d d +| i | d d !t d d ƒ ƒ d d k l } | i t | | d d d ƒ | i t | | d d d d d d d g ƒ | i t | | d d d d d d d g ƒ | i t | | d d t d ƒ ƒ d S( Nid iL i° i i/ iÿÿÿÿ( t setslicei i t abcdeR R t ct dt ei i i i g…ëQ¸ @( R R R R t operatorR t assertRaisest TypeErrort ValueError( R R R R ( ( s4 /usr/local/lib/python2.5/ctypes/test/test_slicing.pyt test_setslice_cint s ++c C sù d } t t i ƒ } t t ƒ | i _ d | i _ | i | ƒ } | i | t | ƒ | ƒ d d k } | i t | i | d d d ƒ | i | ƒ t t ƒ | i _ | i | ƒ } | i | t | ƒ t t d ƒ t d ƒ d ƒ ƒ | i | ƒ d S( Nt abcdefghijklmnopqrstuvwxyziÿÿÿÿi i u abcdeR t zi ( t CDLLt _ctypes_testt __file__t POINTERt c_chart my_strdupt restypet Nonet my_freeR R R R R R t c_byteR t ord( R t st dllt resR ( ( s4 /usr/local/lib/python2.5/ctypes/test/test_slicing.pyt test_char_ptr% s 3c s’ t t i ƒ ‰ d } d t f d „ ƒ Y} d ˆ i _ ‡ f d † } | ˆ i _ | ˆ i _ z# ˆ i | ƒ } | i | | ƒ Wd ˆ i ` Xd S( NR t allocated_c_char_pc B s e Z RS( ( t __name__t __module__( ( ( s4 /usr/local/lib/python2.5/ctypes/test/test_slicing.pyR&