Skip to content

Commit 3718a5b

Browse files
committed
Fix StackOverflowError when calling __len__ on a subclassed bytearray
1 parent a4b7c5a commit 3718a5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/org/python/core/PyByteArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ final PyByteArray bytearray_join(PyObject iterable) {
14661466

14671467
@ExposedMethod(doc = BuiltinDocs.bytearray___len___doc)
14681468
final int bytearray___len__() {
1469-
return __len__();
1469+
return super.__len__();
14701470
}
14711471

14721472
/**

0 commit comments

Comments
 (0)