summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-06 19:07:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-06 19:07:53 (GMT)
commitea525a2d1a798f529b015f86b174d478806ac7ec (patch)
tree4ed79494c2a6a8e3460027a246020d25c1eaca16 /Include
parent620bb277f89ba373b8c50e1a9fb9c8ba77a245c4 (diff)
downloadcpython-ea525a2d1a798f529b015f86b174d478806ac7ec.zip
cpython-ea525a2d1a798f529b015f86b174d478806ac7ec.tar.gz
cpython-ea525a2d1a798f529b015f86b174d478806ac7ec.tar.bz2
Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.
Diffstat (limited to 'Include')
-rw-r--r--Include/opcode.h1
-rw-r--r--Include/unicodeobject.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 171aae7..836c604 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -123,6 +123,7 @@ extern "C" {
#define SETUP_ASYNC_WITH 154
#define FORMAT_VALUE 155
#define BUILD_CONST_KEY_MAP 156
+#define BUILD_STRING 157
/* EXCEPT_HANDLER is a special, implicit block type which is created when
entering an except handler. It is not an opcode but we define it here
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 20b7037..3d7431d 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -1955,6 +1955,14 @@ PyAPI_FUNC(PyObject*) PyUnicode_Join(
PyObject *seq /* Sequence object */
);
+#ifndef Py_LIMITED_API
+PyAPI_FUNC(PyObject *) _PyUnicode_JoinArray(
+ PyObject *separator,
+ PyObject **items,
+ Py_ssize_t seqlen
+ );
+#endif /* Py_LIMITED_API */
+
/* Return 1 if substr matches str[start:end] at the given tail end, 0
otherwise. */