This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jim.Jewett
Recipients Jim.Jewett
Date 2017-07-18.21:17:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

#define XxoObject_Check(v)      (Py_TYPE(v) == Xxo_Type)

assumes that the type cannot be subclassed, but does not say so.  Since this is demo code, it would be better to use something like decimal:

#define PyDec_CheckExact(v) (Py_TYPE(v) == &PyDec_Type)
#define PyDec_Check(v) PyObject_TypeCheck(v, &PyDec_Type)

I *believe* (but haven't verified) that would be:

#define XxoObject_CheckExact(v) (Py_TYPE(v) == &Xxo_Type)
#define XxoObject_Check(v) PyObject_TypeCheck(v, &Xxo_Type)
Date User Action Args
2017-07-18 21:17:58Jim.Jewettsetrecipients: + Jim.Jewett
2017-07-18 21:17:58Jim.Jewettsetmessageid: <>
2017-07-18 21:17:58Jim.Jewettlinkissue30963 messages
2017-07-18 21:17:58Jim.Jewettcreate