PyBytesObject *new;
Py_ssize_t alloc;
- assert(size >= 0);
if (size < 0) {
PyErr_SetString(PyExc_SystemError,
"Negative size passed to PyBytes_FromStringAndSize");
PyString_FromStringAndSize(const char *str, Py_ssize_t size)
{
register PyStringObject *op;
- assert(size >= 0);
if (size < 0) {
PyErr_SetString(PyExc_SystemError,
"Negative size passed to PyString_FromStringAndSize");
{
PyUnicodeObject *unicode;
- assert(size <= 0);
if (size < 0) {
PyErr_SetString(PyExc_SystemError,
"Negative size passed to PyUnicode_FromStringAndSize");