Skip to content

Commit aee9003

Browse files
committed
Add note about usage of STRINGLIB_EMPTY.
1 parent ab6ee7a commit aee9003

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Objects/stringlib/README.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ STRINGLIB_CHAR
1313

1414
STRINGLIB_EMPTY
1515

16-
a PyObject representing the empty string
16+
a PyObject representing the empty string, only to be used if
17+
STRINGLIB_MUTABLE is 0
1718

1819
Py_ssize_t STRINGLIB_LEN(PyObject*)
1920

@@ -31,9 +32,9 @@ STRINGLIB_CHAR* STRINGLIB_STR(PyObject*)
3132

3233
int STRINGLIB_CHECK_EXACT(PyObject *)
3334

34-
returns true if the object is an instance of our type, not a subclass.
35+
returns true if the object is an instance of our type, not a subclass
3536

3637
STRINGLIB_MUTABLE
3738

38-
Must be 0 or 1 to tell the cpp macros in stringlib code if the object
39-
being operated on is mutable or not.
39+
must be 0 or 1 to tell the cpp macros in stringlib code if the object
40+
being operated on is mutable or not

0 commit comments

Comments
 (0)