Skip to content

Commit 280b298

Browse files
committed
Add _io.DEFAULT_BUFFER_SIZE
1 parent dd9a4a1 commit 280b298

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vm/src/stdlib/io.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
739739
"TextIOWrapper" => text_io_wrapper,
740740
"StringIO" => string_io,
741741
"BytesIO" => bytes_io,
742+
"DEFAULT_BUFFER_SIZE" => ctx.new_int(8 * 1024),
742743
})
743744
}
744745

0 commit comments

Comments
 (0)