Skip to content

Commit c1a4591

Browse files
committed
Add UTF-8 encoding info to PyModule_AddStringConstant docs
1 parent bc26f95 commit c1a4591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/c-api/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ state:
633633
634634
Add a string constant to *module* as *name*. This convenience function can be
635635
used from the module's initialization function. The string *value* must be
636-
``NULL``-terminated.
636+
``NULL``-terminated and UTF-8 encoded.
637637
Return ``-1`` with an exception set on error, ``0`` on success.
638638
639639
This is a convenience function that calls

0 commit comments

Comments
 (0)