pub fn init(context: &PyContext) {
    PyByteArrayRef::extend_class(context, &context.types.bytearray_type);
    let bytearray_type = &context.types.bytearray_type;
    extend_class!(context, bytearray_type, {
    "fromhex" => context.new_rustfunc(PyByteArrayRef::fromhex),
    "maketrans" => context.new_rustfunc(PyByteInner::maketrans),
    });

    PyByteArrayIterator::extend_class(context, &context.types.bytearrayiterator_type);
}
/// Fill bytearray class methods dictionary.
Fill bytearray class methods dictionary.
Fill bytearray class methods dictionary .
pub fn init(context: &PyContext) {
    PyByteArrayRef::extend_class(context, &context.types.bytearray_type);
    let bytearray_type = &context.types.bytearray_type;
    extend_class!(context, bytearray_type, {
    "fromhex" => context.new_rustfunc(PyByteArrayRef::fromhex),
    "maketrans" => context.new_rustfunc(PyByteInner::maketrans),
    });
    PyByteArrayIterator::extend_class(context, &context.types.bytearrayiterator_type);
}
pub fn init ( context : & PyContext ) { PyByteArrayRef :: extend_class ( context , & context . types . bytearray_type ) ; let bytearray_type = & context . types . bytearray_type ; extend_class ! ( context bytearray_type { " " context new_rustfunc ( PyByteArrayRef fromhex ) " " context new_rustfunc ( PyByteInner maketrans ) } ) ; PyByteArrayIterator :: extend_class ( context , & context . types . bytearrayiterator_type ) ; }
Fill bytearray class methods dictionary.
Fill bytearray class methods dictionary .
context
&PyContext