Skip to content

Commit 35dea3c

Browse files
committed
Tidy up formatting and fix spelling mistake.
1 parent d79893a commit 35dea3c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Simplify and speed up interpreter for f-strings: Remove FORMAT_VALUE
2-
opcode. Add CONVERT_VALUE, FORMAT_SIMPLE and FORMAT_WITH_SPEC opcode.
3-
Compiler emits optimal sequence for each format expression.
1+
Simplify and speed up interpreter for f-strings. Removes ``FORMAT_VALUE``
2+
opcode. Add ``CONVERT_VALUE``, ``FORMAT_SIMPLE`` and ``FORMAT_WITH_SPEC`` opcode.
3+
Compiler emits more efficient sequence for each format expression.

Python/ceval.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void format_kwargs_mapping_error(PyObject *func, PyObject *kwargs);
7272

7373
typedef PyObject *(*convertion_func_ptr)(PyObject *);
7474

75-
static const convertion_func_ptr CONVERTION_FUNCTIONS[4] = {
75+
static const convertion_func_ptr CONVERSION_FUNCTIONS[4] = {
7676
[FVC_STR] = PyObject_Str,
7777
[FVC_REPR] = PyObject_Repr,
7878
[FVC_ASCII] = PyObject_ASCII
@@ -3297,7 +3297,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
32973297
PyObject *value = POP();
32983298
convertion_func_ptr conv_fn;
32993299
assert(oparg >= FVC_STR && oparg <= FVC_ASCII);
3300-
conv_fn = CONVERTION_FUNCTIONS[oparg];
3300+
conv_fn = CONVERSION_FUNCTIONS[oparg];
33013301
result = conv_fn(value);
33023302
Py_DECREF(value);
33033303
if (result == NULL) {

0 commit comments

Comments
 (0)