Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
rhpl
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/rhpl/descriptors.pyo
mò m(/Bc @ s\ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( t SimpleBoolDescriptorc B s) t Z d Z d „ Z d „ Z d „ Z RS( s@ A data descriptor which constrains its values to True and False.c C s t | _ d S( N( t Falset selft val( R ( ( t4 /usr/lib/python2.4/site-packages/rhpl/descriptors.pyt __init__ s c C s | i S( N( R R ( R t objt objtype( ( R t __get__ s c C s0 t | t t ƒ ƒ p t d ‚ n | | _ d S( Ns value is not True of False( t isinstanceR t typet Truet TypeErrorR ( R R R ( ( R t __set__ s ( t __name__t __module__t __doc__R R R ( ( ( R R s t BoolDescriptorc B s t Z d Z e ƒ Z d „ Z RS( se A data descriptor which constrains its values to True and False, and may be set immutable c C s. | i o t d ‚ n t i | | | ƒ d S( Ns attribute is immutable( R t immutablet RuntimeErrorR R R R ( R R R ( ( R R % s ( R R R R R R ( ( ( R R s t TristateDescriptorc B s t Z d Z e ƒ Z d „ Z RS( sr A data descriptor which constrains its values to True, False, and None, and which may be set immutable c C sU | i o t d ‚ n t | t d ƒ ƒ o d | _ d Sn t i | | | ƒ d S( Ns attribute is immutable( R R R R R R t NoneR R R ( R R R ( ( R R 0 s ( R R R R R R ( ( ( R R * s t NonNegativeIntegerDescriptorc B s) t Z d Z e ƒ Z d „ Z d „ Z RS( sK A data descriptor which constrains its values to non-negative integers c C s• | i o t d ‚ n t | t t d ƒ ƒ ƒ o0 t | t t d ƒ ƒ ƒ o t t | ƒ ‚ n | d j o t d t | ƒ ‚ n | | _ d S( Ns attribute is immutablei i s %s is less than 0( R R R R R R t intt longR t ValueError( R R R ( ( R R >