summaryrefslogtreecommitdiff
path: root/modules/language/python/dict.scm
diff options
context:
space:
mode:
authorStefan Israelsson Tampe <stefan.itampe@gmail.com>2018-02-22 11:22:06 +0100
committerStefan Israelsson Tampe <stefan.itampe@gmail.com>2018-02-22 11:22:06 +0100
commitffaeb154569ad1e67856c65261a6b3563245eea9 (patch)
tree101ca357a43a39781dce6aadb86458c853373014 /modules/language/python/dict.scm
parent5bec0d599fa5f48a9bfe531c6f525df3417a41f4 (diff)
itertools
Diffstat (limited to 'modules/language/python/dict.scm')
-rw-r--r--modules/language/python/dict.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/language/python/dict.scm b/modules/language/python/dict.scm
index fe18583..a57b771 100644
--- a/modules/language/python/dict.scm
+++ b/modules/language/python/dict.scm
@@ -479,6 +479,10 @@
(define-class <hashiter> () l)
+(name-object <hashiter>)
+(cpit <hashiter> (o (lambda (o l) (slot-set! o 'l l))
+ (list (slot-ref o 'l))))
+
(define-method (wrap-in (t <hashtable>))
(let ((o (make <hashiter>)))