Add copy module

This commit is contained in:
Shunsuke Shibayama 2022-10-21 14:47:16 +09:00
parent b28c6bd118
commit ffd0816da8
2 changed files with 7 additions and 2 deletions

View file

@ -6,7 +6,8 @@ use std::process::Command;
use crate::serialize::get_magic_num_from_bytes; use crate::serialize::get_magic_num_from_bytes;
#[cfg(unix)] #[cfg(unix)]
pub const BUILTIN_PYTHON_MODS: [&str; 21] = [ pub const BUILTIN_PYTHON_MODS: [&str; 22] = [
"copy",
"datetime", "datetime",
"glob", "glob",
"http", "http",
@ -30,7 +31,8 @@ pub const BUILTIN_PYTHON_MODS: [&str; 21] = [
"zipfile", "zipfile",
]; ];
#[cfg(not(unix))] #[cfg(not(unix))]
pub const BUILTIN_PYTHON_MODS: [&str; 20] = [ pub const BUILTIN_PYTHON_MODS: [&str; 21] = [
"copy",
"datetime", "datetime",
"glob", "glob",
"http", "http",

View file

@ -0,0 +1,3 @@
.copy: |T: Type|(x: T) -> T
.deepcopy: |T: Type|(x: T) -> T
.Error: ClassType