• stijn's avatar
    py/objarray: Add decode method to bytearray. · fb54736b
    stijn authored
    Reuse the implementation for bytes since it works the same way regardless
    of the underlying type.  This method gets added for CPython compatibility
    of bytearray, but to keep the code simple and small array.array now also
    has a working decode method, which is non-standard but doesn't hurt.
    fb54736b
objstr.h 5.3 KB