Skip to content

Commit 87f96f1

Browse files
authored
Merge pull request RustPython#1244 from youknowone/io-const
Add _io.DEFAULT_BUFFER_SIZE
2 parents d7ea32c + 280b298 commit 87f96f1

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)