示例#1
0
 def check_write_descr_interiorfield(self, interiorfielddescr):
     # NOTE: this is not used so far
     return bitstring.bitcheck(self.bitstring_write_descrs_interiorfields,
                               interiorfielddescr.ei_index)
示例#2
0
 def check_readonly_descr_array(self, arraydescr):
     return bitstring.bitcheck(self.bitstring_readonly_descrs_arrays,
                               arraydescr.ei_index)
示例#3
0
 def check_write_descr_array(self, arraydescr):
     return bitstring.bitcheck(self.bitstring_write_descrs_arrays,
                               arraydescr.ei_index)
示例#4
0
 def check_readonly_descr_field(self, fielddescr):
     return bitstring.bitcheck(self.bitstring_readonly_descrs_fields,
                               fielddescr.ei_index)
示例#5
0
 def check_write_descr_field(self, fielddescr):
     return bitstring.bitcheck(self.bitstring_write_descrs_fields,
                               fielddescr.ei_index)
示例#6
0
 def check_write_descr_array(self, arraydescr):
     return bitstring.bitcheck(self.bitstring_write_descrs_arrays,
                               arraydescr.ei_index)
示例#7
0
 def check_write_descr_interiorfield(self, interiorfielddescr):
     # NOTE: this is not used so far
     return bitstring.bitcheck(self.bitstring_write_descrs_interiorfields,
                               interiorfielddescr.ei_index)
示例#8
0
 def check_readonly_descr_array(self, arraydescr):
     return bitstring.bitcheck(self.bitstring_readonly_descrs_arrays,
                               arraydescr.ei_index)
示例#9
0
 def check_write_descr_field(self, fielddescr):
     return bitstring.bitcheck(self.bitstring_write_descrs_fields,
                               fielddescr.ei_index)
示例#10
0
 def check_readonly_descr_field(self, fielddescr):
     return bitstring.bitcheck(self.bitstring_readonly_descrs_fields,
                               fielddescr.ei_index)
示例#11
0
 def expand(bitstr):
     return [n for n in range(10) if bitcheck(bitstr, n)]
 def expand(bitstr):
     return [n for n in range(10) if bitcheck(bitstr, n)]