| 79 | bool WarnedThatSetIsNotSequence = false; |
| 80 | |
| 81 | bool IsString(PyObject* o) { |
| 82 | return PyBytes_Check(o) || |
| 83 | #if PY_MAJOR_VERSION < 3 |
| 84 | PyString_Check(o) || |
| 85 | #endif |
| 86 | PyUnicode_Check(o); |
| 87 | } |
| 88 | |
| 89 | // Equivalent to Python's 'o.__class__.__name__' |
| 90 | // Note that '__class__' attribute is set only in new-style classes. |
no outgoing calls
no test coverage detected