Remove and return a single item from B. index The index from where to remove the item. -1 (the default value) means remove the last item. If no index argument is given, will pop the last item.
builtins/bytearray.pop
bytearray.pop