We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16e0c44 commit 75c4fe5Copy full SHA for 75c4fe5
src/lispifiers.lisp
@@ -169,6 +169,10 @@
169
(optimize speed)
170
(inline gethash pyobject-typename/simple djb2-foreign-string-hash))
171
(assert (eq :lisp *pyobject-translation-mode*))
172
+ ;; The performance impact of this check is less than 2%
173
+ ;; -- so it's worth it for a slightly more robust system.
174
+ (if (null-pointer-p pyobject)
175
+ (return-from lispify nil))
176
(let* ((pytype-name-foreign (pyobject-typename/simple pyobject))
177
(pytype-name-hash (djb2-foreign-string-hash pytype-name-foreign))
178
;; FIXME: What about names in modules?
0 commit comments