PyStringObject

Invariants: ob_sval contains space for 'ob_size+1' elements. ob_svalob_size == 0. ob_shash is the hash of the string or -1 if not computed yet. ob_sstate != 0 iff the string object is in stringobject.c's 'interned' dictionary; in this case the two references from 'interned' to this object are *not counted* in ob_refcnt.

subclass of PyVarObject Availability: 2.*

version(!Python_3_0_Or_Later)
extern (C)
struct PyStringObject {}

Members

Functions

ob_sval
char* ob_sval()

_

Mixins

__anonymous
mixin PyObject_VAR_HEAD
Undocumented in source.

Variables

_ob_sval
char[1] _ob_sval;
Undocumented in source.
ob_shash
C_long ob_shash;

_

ob_sstate
int ob_sstate;

_

Mixed In Members

From mixin PyObject_VAR_HEAD

__anonymous
mixin PyObject_HEAD
Undocumented in source.
ob_size
Py_ssize_t ob_size;

_

Meta