We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdd7fa8 + 2e618af commit 9261d94Copy full SHA for 9261d94
tests/snippets/sysmod.py
@@ -20,3 +20,4 @@
20
assert type(sys.flags).__name__ == "flags"
21
assert type(sys.flags.optimize) is int
22
assert sys.flags[3] == sys.flags.optimize
23
+assert sys.maxunicode == 1114111
vm/src/sysmodule.rs
@@ -256,7 +256,8 @@ settrace() -- set the global debug tracing function
256
"getfilesystemencoding" => ctx.new_rustfunc(sys_getfilesystemencoding),
257
"getfilesystemencodeerrors" => ctx.new_rustfunc(sys_getfilesystemencodeerrors),
258
"intern" => ctx.new_rustfunc(sys_intern),
259
- "maxsize" => ctx.new_int(std::usize::MAX),
+ "maxunicode" => ctx.new_int(0x0010_FFFF),
260
+ "maxsize" => ctx.new_int(std::isize::MAX),
261
"path" => path,
262
"ps1" => ctx.new_str(">>>>> ".to_string()),
263
"ps2" => ctx.new_str("..... ".to_string()),
0 commit comments