From 2400fa4ad115e8ebe75c61c3bb96bd7cf2364dd4 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Wed, 12 Sep 2001 19:12:49 +0000 Subject: Again perhaps the end of [#460020] bug or feature: unicode() and subclasses. Inhibited complex unary plus optimization when applied to a complex subtype. Added PyComplex_CheckExact macro. Some comments and minor code fiddling. --- Objects/floatobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/floatobject.c') diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 880eb0e1e0..b9a5e1b84d 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -659,7 +659,7 @@ float_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds) tmp = float_new(&PyFloat_Type, args, kwds); if (tmp == NULL) return NULL; - assert(PyFloat_Check(tmp)); + assert(PyFloat_CheckExact(tmp)); new = type->tp_alloc(type, 0); if (new == NULL) return NULL; -- cgit v1.2.1