summaryrefslogtreecommitdiff
path: root/tests/stress/dict_create.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stress/dict_create.py')
-rw-r--r--tests/stress/dict_create.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stress/dict_create.py b/tests/stress/dict_create.py
new file mode 100644
index 000000000..e9db40a8e
--- /dev/null
+++ b/tests/stress/dict_create.py
@@ -0,0 +1,8 @@
+# create a large dictionary
+
+d = {}
+x = 1
+while x < 1000:
+ d[x] = x
+ x += 1
+print(d[500])