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 788d3ac commit f94522bCopy full SHA for f94522b
stringdtype/stringdtype/src/dtype.c
@@ -81,7 +81,7 @@ get_value(PyObject *scalar, StringDType_type *cls)
81
else if (!((scalar_type == &PyUnicode_Type) ||
82
(scalar_type == expected_scalar_type))) {
83
// attempt to coerce to str
84
- scalar = PyObject_CallOneArg((PyObject *)&PyUnicode_Type, scalar);
+ scalar = PyObject_Str(scalar);
85
if (scalar == NULL) {
86
// __str__ raised an exception
87
return NULL;
0 commit comments