We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b13e464 commit c6945f1Copy full SHA for c6945f1
Lib/test/_testcppext.cpp
@@ -167,12 +167,12 @@ PyType_Spec VirtualPyObject_Spec = {
167
168
VirtualPyObject::VirtualPyObject() {
169
// Create a temporary type (just so we don't need to store it)
170
- PyObject *ipotype = PyType_FromSpec(&VirtualPyObject_Spec);
+ PyObject *type = PyType_FromSpec(&VirtualPyObject_Spec);
171
// no good way to signal failure from a C++ constructor, so use assert
172
// for error handling
173
- assert(ipotype);
174
- assert(PyObject_Init(this, (PyTypeObject *)ipotype));
175
- Py_DECREF(ipotype);
+ assert(type);
+ assert(PyObject_Init(this, (PyTypeObject *)type));
+ Py_DECREF(type);
176
internal_data = new int[50];
177
++instance_count;
178
}
0 commit comments