File: //proc/self/root/usr/lib/python2.4/Demo/classes/bitvec.pyo
mò
‚=5Dc @ se d k Z e i i Z d Z d „ Z d k Z d „ Z d „ Z d „ Z d f d „ ƒ YZ
e
Z d S( Ns bitvec.errorc C sI t | ƒ t d ƒ j p d | j o
d j n o
t d ‚ n d S( Ni i s) bitvec() items must have int value 0 or 1( t typet valuet error( R ( ( t) /usr/lib/python2.4/Demo/classes/bitvec.pyt _check_value s 8c C sƒ t i t | ƒ ƒ \ } } d | >} | | j o d d | | f f ‚ n x0 | o( | d ?} | | @o Pn | d } qO W| S( Nl t FATALs (param, l) = %ri ( t matht frexpt floatt paramt mantt lt bitmask( R R
R R ( ( R t _compute_len s
c C sp t | ƒ t d ƒ j o
t d ‚ n | d j o | | } n d | j o
| j n p
t d ‚ n | S( Ni s sequence subscript not ints list index out of range( R t keyt TypeErrort lent
IndexError( R R ( ( R t
_check_key s
c C s@ t | d ƒ t | | ƒ } } | | j o
| } n | | f S( Ni ( t maxt it minR t j( R R R ( ( R t _check_slice) s
t BitVecc B s
t Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d
„ Z d „ Z d „ Z
d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nc G sî d | _ d | _ t | ƒ p nÈt | ƒ d j oÖ | \ } t | ƒ t g ƒ j oX d } d } x- | D]% } | o | | B} n | d >} qk W| | _ t | ƒ | _ qêt | ƒ t d ƒ j o6 | d j o
t
d ‚ n | | _ t | ƒ | _ qêt
d ‚ nß t | ƒ d j o | \ } } t | ƒ t d ƒ j o | d j o
t
d ‚ n | | _ t | ƒ t d ƒ j o
t
d ‚ n t | ƒ } | | j o! d
GH| i d | >d @| _ n | | _ qêt
d ‚ n
t
d ‚ d S( Nl i i l s$ bitvec() can't handle negative longss) bitvec() requires array or long parameteri s can't handle negative longss$ bitvec()'s 2nd parameter must be intsM warning: bitvec() value is longer than the length indicates, truncating values% bitvec() requires 0 -- 2 parameter(s)( t selft _datat _lenR t paramsR R R t bit_maskt itemR R
t lengtht computed_length( R R R R R R R R ( ( R t __init__3 sJ
c C s( t t | ƒ d ƒ | | i | i +d S( Ni ( R t longR R R ( R R ( ( R t appenda s c C sV | o
| i } n | i } d } x+ | o# | d ?| | d @d j } } q' W| S( Ni i ( R R R t datat count( R R R% R$ ( ( R R% h s
$c C sd | o
| i } n | i } d } | p
t d ‚ n x% | d @p | d ?| d } } q; W| S( Ni s list.index(x): x not in listi ( R R R R$ t indext
ValueError( R R R&