basictypes.bytes
index
p:\properties\basictypes\bytes.py

 
Modules
       
basictypes.basic_types

 
Classes
       
Long_DT(Numeric_DT)
Bytes_DT

 
class Bytes_DT(Long_DT)
    Special data-type for byte values
 
 
Method resolution order:
Bytes_DT
Long_DT
Numeric_DT
BaseType_DT
DataTypeDefinition
object

Class methods defined here:
format(cls, value) from type
Format as a string which is back-coercable

Data and other attributes defined here:
displayTemplates = [(1099511627776.0, '%0.3f TB'), (1073741824.0, '%0.3f GB'), (1048576.0, '%0.3f MB'), (1024.0, '%0.3f KB'), (0, '%0.0f B')]

Data and other attributes inherited from Long_DT:
baseType = <type 'long'>
long(x[, base]) -> integer
 
Convert a string or number to a long integer, if possible.  A floating
point argument will be truncated towards zero (this does not include a
string representation of a floating point number!)  When converting a
string, use the optional base.  It is an error to supply a base when
converting a non-string.
dataType = 'long'

Class methods inherited from Numeric_DT:
coerce(cls, value) from type
Coerce value to Numeric value (using baseType)
 
Accepted values:
        "", "0" -- 0
        numeric values
        ascii strings -- base type attempts to interpret

Class methods inherited from BaseType_DT:
check(cls, value) from type
Determine whether value conforms to definition
factories(cls) from type
Determine a sequence of factory objects

Static methods inherited from BaseType_DT:
__new__(cls, *args, **named)
Create a new instance of our base-type

Data and other attributes inherited from DataTypeDefinition:
__dict__ = <dictproxy object at 0x01AD1490>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DataTypeDefinition' objects>
list of weak references to the object (if defined)

 
Data
        GIGABYTES = 1073741824.0
KILOBYTES = 1024.0
MEGABYTES = 1048576.0
TERABYTES = 1099511627776.0