summaryrefslogtreecommitdiff
path: root/modules/language/python/dict.scm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/language/python/dict.scm')
-rw-r--r--modules/language/python/dict.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/language/python/dict.scm b/modules/language/python/dict.scm
index 18420dd..b564d28 100644
--- a/modules/language/python/dict.scm
+++ b/modules/language/python/dict.scm
@@ -225,11 +225,13 @@
(define-method (bool (o <hashtable>))
(for ((k v : o)) ()
- (break #t)
+ (break o)
#:final #f))
(define-method (bool (o <py-hashtable>))
- (not (= (len o) 0)))
+ (if (= (len o) 0)
+ #f
+ o))
(define-py (py-copy copy o)
(<hashtable>