diff options
Diffstat (limited to 'modules/language/python/module/sys.scm')
-rw-r--r-- | modules/language/python/module/sys.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/language/python/module/sys.scm b/modules/language/python/module/sys.scm index 1ca3992..9e8ce70 100644 --- a/modules/language/python/module/sys.scm +++ b/modules/language/python/module/sys.scm @@ -4,6 +4,7 @@ #:use-module (language python hash) #:use-module (language python try) #:use-module (language python module python) + #:use-module (oop pf-objects) #:export (argv byteorder copyright implementation stdin stdout stderr __stdin__ __stdout__ __stderr__ @@ -150,7 +151,10 @@ (define path_hooks '()) (define path_importer_cache (make-hash-table)) -(define hash_info pyhash-N) +(define-python-class hash_info () + (define modulus pyhash-N) + (define inf ((@ (guile) hash) 'inf pyhash-N)) + (define nan ((@ (guile) hash) 'nan pyhash-N))) (define platform "linux") |