diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-12 19:12:49 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-12 19:12:49 (GMT) |
commit | 2400fa4ad115e8ebe75c61c3bb96bd7cf2364dd4 (patch) | |
tree | b7b324cfd94a932ccfb9d533ce1df33c57413e3d /Objects/floatobject.c | |
parent | 1140cb2b9e74ce302c35e84ac04adc0b11e2db00 (diff) | |
download | cpython-2400fa4ad115e8ebe75c61c3bb96bd7cf2364dd4.zip cpython-2400fa4ad115e8ebe75c61c3bb96bd7cf2364dd4.tar.gz cpython-2400fa4ad115e8ebe75c61c3bb96bd7cf2364dd4.tar.bz2 |
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.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 880eb0e..b9a5e1b 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; |