Add versionadded to the new json_pack() format specifiers

This commit is contained in:
Petri Lehtinen 2013-09-23 09:34:00 +03:00
parent 641002da37
commit e4d6a9f6f4

View File

@ -1082,14 +1082,20 @@ arguments.
``s#`` (string) [const char \*, int]
Convert a UTF-8 buffer of a given length to a JSON string.
.. versionadded:: 2.5
``+`` [const char \*]
Like ``s``, but concatenate to the previous string. Only valid
after ``s``, ``s#``, ``+`` or ``+#``.
.. versionadded:: 2.5
``+#`` [const char \*, int]
Like ``s#``, but concatenate to the previous string. Only valid
after ``s``, ``s#``, ``+`` or ``+#``.
.. versionadded:: 2.5
``n`` (null)
Output a JSON null value. No argument is consumed.