You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: os/os.module.go
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ func init() {
20
20
py.MustNewMethod("getenv", getenv, 0, "Return the value of the environment variable key if it exists, or default if it doesn’t. key, default and the result are str."),
21
21
py.MustNewMethod("getpid", getpid, 0, "Return the current process id."),
22
22
py.MustNewMethod("putenv", putenv, 0, "Set the environment variable named key to the string value."),
23
+
py.MustNewMethod("unsetenv", unsetenv, 0, "Unset (delete) the environment variable named key."),
0 commit comments