Message366883
Another possibility yet would be:
typedef struct {
PyObject_VAR_HEAD
Py_hash_t ob_shash;
char ob_sval;
} PyBytesObject;
#define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
&(((PyBytesObject *)(op))->ob_sval))
Not sure whether that would be UB... |
|
Date |
User |
Action |
Args |
2020-04-20 21:13:05 | pitrou | set | recipients:
+ pitrou, gregory.p.smith, vstinner, serhiy.storchaka, colesbury, pablogsal |
2020-04-20 21:13:05 | pitrou | set | messageid: <1587417185.94.0.947363558961.issue40120@roundup.psfhosted.org> |
2020-04-20 21:13:05 | pitrou | link | issue40120 messages |
2020-04-20 21:13:05 | pitrou | create | |
|