From 9e004444612191bd94a23f14d66a9cd387e6de5c Mon Sep 17 00:00:00 2001 From: stijn Date: Thu, 18 Jun 2020 11:23:39 +0200 Subject: [PATCH] sys: Implement intern(). --- python-stdlib/sys/manifest.py | 3 +++ python-stdlib/sys/sys.py | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 python-stdlib/sys/manifest.py create mode 100644 python-stdlib/sys/sys.py diff --git a/python-stdlib/sys/manifest.py b/python-stdlib/sys/manifest.py new file mode 100644 index 000000000..e2b4d0150 --- /dev/null +++ b/python-stdlib/sys/manifest.py @@ -0,0 +1,3 @@ +metadata(version="0.0.1") + +module("sys.py") diff --git a/python-stdlib/sys/sys.py b/python-stdlib/sys/sys.py new file mode 100644 index 000000000..5e970ad16 --- /dev/null +++ b/python-stdlib/sys/sys.py @@ -0,0 +1,7 @@ +from usys import * + + +def intern(s): + # MicroPython has its own interning mechanism so just return the string, + # which might or might not actually be interned. + return s