[Python-checkins] CVS: python/dist/src/Include complexobject.h,2.8,2.9
Tim Peters
tim_one@users.sourceforge.net
Wed, 12 Sep 2001 12:12:50 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv26660/python/Include
Modified Files:
complexobject.h
Log Message:
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.
Index: complexobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/complexobject.h,v
retrieving revision 2.8
retrieving revision 2.9
diff -C2 -d -r2.8 -r2.9
*** complexobject.h 2001/08/29 15:45:32 2.8
--- complexobject.h 2001/09/12 19:12:48 2.9
***************
*** 44,47 ****
--- 44,48 ----
#define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
+ #define PyComplex_CheckExact(op) ((op)->ob_type == &PyComplex_Type)
extern DL_IMPORT(PyObject *) PyComplex_FromCComplex(Py_complex);