Mercurial > cpython-lru_cache-weakref
diff Objects/floatobject.c @ 19889:733314fcfdaa legacy-trunk
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.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Wed, 12 Sep 2001 19:12:49 +0000 |
| parents | bc50581b3d7c |
| children | da00188d5270 |
line wrap: on
line diff
--- a/Objects/floatobject.c Wed Sep 12 18:59:25 2001 +0000 +++ b/Objects/floatobject.c Wed Sep 12 19:12:49 2001 +0000 @@ -659,7 +659,7 @@ 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;
