mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #3481 from Snowapril/builtin_constants
Register `True`, `False`, `None` to builtins
This commit is contained in:
@@ -952,6 +952,9 @@ pub fn make_module(vm: &VirtualMachine, module: PyObjectRef) {
|
||||
"zip" => ctx.types.zip_type.clone(),
|
||||
|
||||
// Constants
|
||||
"None" => ctx.none(),
|
||||
"True" => ctx.new_bool(true),
|
||||
"False" => ctx.new_bool(false),
|
||||
"NotImplemented" => ctx.not_implemented(),
|
||||
"Ellipsis" => vm.ctx.ellipsis.clone(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user